Function at 0x10040340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100b9acc
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x100de3a4]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de3a4]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2b0]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], ebx
push ebx
mov ebp, 1
push 0x100be419
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2b0], ebp
mov byte [esp + 0x1f], bl
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.10011860
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x100be419
mov ecx, esi
mov byte [esp + 0x2b0], 2
mov byte [esi + 4], bl
call fcn.10011860
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x2c8], ebx
je 0x100407d5
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2bc]
mov ebp, 0xf
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.10011780
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2bc]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b4], 3
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.10011780
push 0x1ff
lea edx, [esp + 0xa1]
push ebx
push edx
mov byte [esp + 0x2b4], 4
mov byte [esp + 0xa8], bl
call fcn.1007b650
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp dword [esp + 0x60], 0x10
jae 0x10040483
lea eax, [esp + 0x4c]
movzx ecx, byte [0x100c5d2e]
mov edx, dword [str.PayloadCode]
push ecx
mov ecx, dword [edi + 0x120]
push eax
push edx
push 0x200
lea eax, [esp + 0xac]
push eax
push ecx
call fcn.10053670
mov ebp, eax
lea eax, [esp + 0xb4]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x100404c0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100404c0
sub eax, edx
push eax
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x6c]
call fcn.10011860
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x4c]
call fcn.1003fd80
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.10011780
cmp ebp, ebx
jne 0x100405fa
cmp dword [esp + 0x78], ebx
je 0x100405fa
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0xa8], bl
call fcn.10011780
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10011780
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call fcn.1003e670
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x2b4], 5
call fcn.10011780
mov ebp, 0x10
mov byte [esp + 0x2a8], 4
cmp dword [esp + 0x44], ebp
jb 0x10040583
mov edx, dword [esp + 0x30]
push edx
call fcn.1007af72
add esp, 4
cmp dword [esi + 0x14], ebx
je 0x100405ff
sub esp, 0x1c
lea eax, [esp + 0x2d0]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.10014c30
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push esi
mov byte [esp + 0x2e4], 6
call fcn.10014c30
mov ecx, edi
mov byte [esp + 0x2e0], 4
call fcn.1003ff90
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], ebp
jae 0x100405d6
lea eax, [esp + 0x4c]
mov ecx, dword [0x100ddcec]
push eax
push str.Preserial_Number_found_for_payload__s
push ecx
push 4
push str.PCCheck
call fcn.10013480
push eax
call fcn.100564f0
add esp, 0x18
jmp 0x100405ff
mov ebp, 0x10
mov eax, dword [edi + 0x34]
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x38]
je 0x10040780
jmp 0x10040615
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xa8], bl
call fcn.10011780
mov edx, dword [esp + 0x2b8]
cmp dword [esp + 0x2cc], ebp
jae 0x10040640
lea edx, [esp + 0x2b8]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10040645
sub eax, ebp
push eax
push ebx
push edx
lea ecx, [esp + 0x54]
call fcn.10013ad0
cmp eax, 0xffffffff
je 0x10040767
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x10040672
lea eax, [esp + 0x4c]
movzx edx, byte [0x100c5d2f]
push edx
mov edx, dword [edi + 0x120]
push eax
mov eax, dword [0x100dd914]
push eax
push 0x200
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.10053670
mov ebp, eax
lea eax, [esp + 0xb4]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100406b0
sub eax, edx
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.10011860
cmp ebp, ebx
jne 0x10040767
cmp dword [esi + 0x14], ebx
je 0x10040767
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x2d8]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.10011780
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push esi
mov byte [esp + 0x2ec], 7
mov byte [ecx + 4], bl
call fcn.10011780
mov ecx, edi
mov byte [esp + 0x2e0], 4
call fcn.1003ff90
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x4c]
jae 0x10040746
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x100ddcec]
push str.Serialized_Found_for_LEID__s
push eax
push 4
push str.PCCheck
call fcn.10013480
push eax
call fcn.100564f0
add esp, 0x18
mov eax, dword [esp + 0x18]
add eax, 0x1c
mov dword [esp + 0x18], eax
mov ebp, 0x10
cmp eax, dword [edi + 0x38]
jne 0x10040611
cmp dword [esp + 0x98], ebp
jb 0x10040799
mov ecx, dword [esp + 0x84]
push ecx
call fcn.1007af72
add esp, 4
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x60], ebp
jb 0x100407cd
mov edx, dword [esp + 0x4c]
push edx
call fcn.1007af72
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x100407e7
jmp 0x100407da
mov ebp, 0x10
push ebx
push 0x100be419
mov ecx, esi
call fcn.10011860
cmp dword [esp + 0x7c], ebp
jb 0x100407fa
mov eax, dword [esp + 0x68]
push eax
call fcn.1007af72
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0x2cc], ebp
jb 0x10040823
mov ecx, dword [esp + 0x2b8]
push ecx
call fcn.1007af72
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.1007b636
add esp, 0x298
ret 0x20