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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4251e4
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x430050]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], edi
lea ebx, [esp + 0x17]
lea esi, [esp + 0x54]
mov byte [esp + 0x17], 0x43
call fcn.0040dde5
lea ecx, [esp + 0x28]
call fcn.0040cc0f
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], edi
jle 0x40cdb8
push 0x3a
push eax
call fcn.0040f07c
cmp eax, edi
pop ecx
pop ecx
je 0x40cdb8
mov ecx, dword [esp + 0x28]
sub eax, ecx
sar eax, 1
cmp eax, edi
jle 0x40cdb8
dec eax
cmp eax, edi
jl 0x40d1b1
cmp eax, dword [ecx - 0xc]
jg 0x40d1b1
movzx eax, word [ecx + eax*2]
cmp al, 0x43
mov byte [esp + 0x17], al
je 0x40cdb8
cmp al, 0x63
je 0x40cdb8
lea ebx, [esp + 0x17]
call fcn.0040dde5
mov eax, dword [0x4322e4]
mov ebx, 0x4322e4
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x80], 2
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 3
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x80], 4
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0x80], 5
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x80], 6
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x8c], 7
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
call fcn.0040d1bc
add esp, 0x10
test dword [esp + 0x2c], 0x40000
lea eax, [esp + 0x1c]
je 0x40cea8
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x40]
push str._08X_08X_08X
call fcn.00404da5
add esp, 0x10
jmp 0x40ceb3
push 0x429c1c
push eax
call fcn.00404051
lea esi, [esp + 0x1c]
call fcn.0040d23a
xor esi, esi
cmp dword [esp + 0x58], edi
je 0x40ceed
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
cmp esi, eax
jae 0x40ceed
mov eax, dword [esp + 0x58]
add eax, esi
movzx eax, byte [eax]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040d2e7
test eax, eax
pop ecx
pop ecx
jne 0x40ceed
inc esi
jmp 0x40cebe
lea esi, [esp + 0x18]
call fcn.0040d23a
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0x28
jle 0x40cf30
lea ecx, [esp + 0x38]
mov eax, esi
call fcn.0040dd0b
mov edi, esi
mov byte [esp + 0x80], 8
call fcn.00404010
mov byte [esp + 0x80], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004054c6
xor edi, edi
xor esi, esi
cmp dword [esp + 0x58], edi
je 0x40cf61
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
cmp esi, eax
jae 0x40cf61
mov eax, dword [esp + 0x58]
add eax, esi
movzx eax, byte [eax]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d587
test eax, eax
pop ecx
pop ecx
jne 0x40cf61
inc esi
jmp 0x40cf32
lea esi, [esp + 0x20]
call fcn.0040d23a
lea eax, [esp + 0x24]
push eax
call fcn.0040d254
pop ecx
lea esi, [esp + 0x24]
call fcn.0040d23a
push 0x42b170
lea eax, [esp + 0x4c]
push eax
call fcn.00403f7b
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
mov byte [esp + 0x88], 9
call fcn.004040d5
lea ecx, [esp + 0x48]
push 0x42b16c
push ecx
mov ecx, eax
mov byte [esp + 0x90], 0xa
call fcn.0040dd41
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
mov byte [esp + 0x98], 0xb
call fcn.004040d5
lea ecx, [esp + 0x44]
push 0x42b168
push ecx
mov ecx, eax
mov byte [esp + 0xa0], 0xc
call fcn.0040dd41
mov ecx, esi
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
mov byte [esp + 0xa8], 0xd
call fcn.004040d5
lea ecx, [esp + 0x5c]
push 0x42b164
push ecx
mov ecx, eax
mov byte [esp + 0xb0], 0xe
call fcn.0040dd41
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
mov byte [esp + 0xb8], 0xf
call fcn.004040d5
add esp, 0x38
mov edi, dword [ebp + 8]
mov byte [esp + 0x80], 0x10
call fcn.00404010
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
call fcn.004054c6
mov byte [esp + 0x80], 7
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x84], 0x11
call dword [0x427074]
movzx eax, word [esp + 0x72]
push eax
movzx eax, word [esp + 0x74]
push eax
movzx eax, word [esp + 0x76]
push eax
movzx eax, word [esp + 0x78]
push eax
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7c]
push eax
push str._04d_02d_02d_02d_02d_02d_03d
lea eax, [esp + 0x58]
call fcn.00404da5
add esp, 0x20
push 0x42b194
push edi
call fcn.00404080
mov esi, dword [esp + 0x38]
push dword [esi - 0xc]
mov eax, edi
push esi
call fcn.00404c18
lea eax, [esi - 0x10]
call fcn.004054c6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [esp + 0x58], 0
je 0x40d19b
push dword [esp + 0x58]
call fcn.0040e8ee
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405963
int3