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

Disassembly:
sub esp, 0x68
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x78]
cmp edi, 0x200000
mov dword [esp + 8], eax
mov dword [esp + 0x1c], ebp
jle 0x40d774
pop edi
mov eax, 0xffffff37
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
push ebx
push esi
lea esi, [edi*4]
mov dword [esp + 0x28], esi
add esi, 0x32
push esi
call fcn.00434ad0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40d7ad
pop esi
pop ebx
pop edi
mov eax, 0xffffff36
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
push esi
push 0
push ebx
call fcn.00436760
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push ebx
call fcn.0043bae0
mov edx, dword [esp + 0xa0]
push edx
push 0
push ebp
call fcn.00436760
add esp, 0x24
test edi, edi
jge 0x40d7fc
push ebx
call fcn.00434632
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 0xffffff35
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
jne 0x40d81e
push ebx
call fcn.00434632
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
cmp esi, dword [esp + 0x88]
jle 0x40d84a
push ebx
call fcn.00434632
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 0xffffff34
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
push edi
push ebx
call fcn.0040e230
xor esi, esi
test edi, edi
jle 0x40d887
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d860
movzx ecx, byte [esi + ebx]
push ecx
sub eax, edx
add eax, ebp
push str._02x
push eax
call fcn.00432a00
add esi, 1
add esp, 0xc
cmp esi, edi
jl 0x40d857
cmp dword [esp + 0x8c], 1
jne 0x40da41
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00432fe3
call fcn.00432ff0
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x40d8b2
dec eax
or eax, 0xfffffff8
inc eax
push 0x40
lea edx, [esp + 0x3c]
add eax, 8
push 0
push edx
mov dword [esp + 0x28], eax
call fcn.00436760
mov eax, dword [esp + 0x28]
lea ebp, [eax + eax*2]
add esp, 0x10
xor esi, esi
test ebp, ebp
mov dword [esp + 0x30], ebp
jle 0x40d8ff
jmp 0x40d8e0
call fcn.00432ff0
cdq
mov ecx, 0xf
idiv ecx
add esi, 1
add dl, 1
cmp esi, ebp
mov byte [esp + esi + 0x33], dl
jl 0x40d8e0
mov eax, dword [esp + 0x18]
mov byte [esp + ebp + 0x34], al
mov eax, dword [esp + 0x28]
add eax, 0x32
push eax
push 0
push ebx
call fcn.00436760
xor eax, eax
lea ecx, [edi + edi]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x40d9f9
jmp 0x40d934
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*2]
movsx edx, byte [esp + eax + 0x35]
movsx ebp, byte [esp + eax + 0x34]
cmp edx, ebp
movsx ecx, byte [esp + eax + 0x36]
jle 0x40d954
mov eax, ebp
mov dword [esp + 0x14], eax
mov ebp, edx
jmp 0x40d95a
mov dword [esp + 0x14], edx
mov eax, edx
cmp ecx, eax
jg 0x40d964
mov dword [esp + 0x1c], ecx
jmp 0x40d978
cmp ecx, ebp
mov dword [esp + 0x1c], eax
jle 0x40d974
mov dword [esp + 0x14], ebp
mov ebp, ecx
jmp 0x40d978
mov dword [esp + 0x14], ecx
mov eax, ebx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d980
mov edx, dword [esp + 0x24]
sub eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
lea edi, [edx + eax]
mov esi, 1
call fcn.0040da90
sub ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add ebp, dword [esp + 0x1c]
add ecx, ebx
imul eax, ebp
push eax
push str._02x
push ecx
call fcn.00432a00
mov eax, dword [esp + 0x2c]
add eax, esi
cdq
idiv dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
add eax, esi
add ecx, ecx
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jl 0x40d930
mov edi, dword [esp + 0x80]
mov ebp, dword [esp + 0x30]
xor esi, esi
test ebp, ebp
jl 0x40da2d
nop
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40da05
sub eax, edx
movsx edx, byte [esp + esi + 0x34]
push edx
add eax, ebx
push 0x458350
push eax
call fcn.00432a00
add esi, 1
add esp, 0xc
cmp esi, ebp
jle 0x40da00
mov edx, dword [esp + 0x24]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40da35
push ebx
call fcn.00434632
add esp, 4
cmp dword [esp + 0x8c], 1
je 0x40da6c
pop esi
pop ebx
lea eax, [edi + edi]
pop edi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043197e
add esp, 0x68
ret 0x14
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x6c]
pop edi
pop ebp
xor ecx, esp
lea eax, [eax + edx + 1]
call fcn.0043197e
add esp, 0x68
ret 0x14