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

Disassembly:
sub esp, 0x44
mov eax, 1
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x34]
push edx
push eax
push 0xffffffffffffffff
push ecx
push ebx
call fcn.00413760
mov esi, eax
lea edx, [esp + 0x5c]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x80], esi
call fcn.00413760
mov edi, eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0xac]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0xa0], edi
call fcn.00413760
mov ecx, dword [esp + 0x64]
add esp, 0x54
lea edx, [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push 1
push eax
push ecx
push edx
push esi
mov dword [esp + 0x68], ebp
call fcn.00412290
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x5c]
push 1
push ecx
push edx
push eax
push edi
call fcn.00412290
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x78]
push 1
push edx
push eax
push ecx
push ebp
call fcn.00412290
add esp, 0x48
mov dword [esp + 0x6c], eax
test esi, esi
je 0x41370b
test edi, edi
je 0x4136fd
test ebp, ebp
je 0x4136fd
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4136fd
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4136fd
test eax, eax
je 0x4136fd
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
jle 0x4134a9
add ecx, 8
mov edi, dword [ecx]
mov ebp, dword [esp + 0x2c]
add ecx, 0x14
mov dword [ebp + edi*4], eax
mov edi, dword [esp + 0x10]
inc eax
cmp eax, edi
jl 0x413493
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x4134cb
lea ecx, [edx + 8]
mov edx, dword [ecx]
mov edi, dword [esp + 0x30]
add ecx, 0x14
mov dword [edi + edx*4], eax
mov edx, dword [esp + 0x14]
inc eax
cmp eax, edx
jl 0x4134b6
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x4134f1
mov ecx, dword [esp + 0x6c]
add ecx, 8
mov edx, dword [ecx]
mov edi, dword [esp + 0x34]
add ecx, 0x14
mov dword [edi + edx*4], eax
mov edx, dword [esp + 0x18]
inc eax
cmp eax, edx
jl 0x4134dc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
push eax
push 1
push ecx
push edx
push edi
call fcn.00411a40
add esp, 0x14
test eax, eax
jl 0x41374f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x40]
push eax
push 1
push ecx
push edx
push edi
call fcn.00411a40
add esp, 0x14
test eax, eax
jl 0x41374f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add ebp, eax
mov eax, dword [esp + 0x44]
push eax
push 1
push ecx
push edx
push edi
call fcn.00411a40
add esp, 0x14
test eax, eax
jl 0x41374f
mov ecx, dword [esp + 0x70]
add ebp, eax
mov eax, dword [esp + 0x10]
push 1
push eax
push ecx
push edi
call fcn.00411ba0
add esp, 0x10
test eax, eax
jl 0x41374f
mov edx, dword [esp + 0x14]
add ebp, eax
mov eax, dword [esp + 0x1c]
push 1
push edx
push eax
push edi
call fcn.00411ba0
add esp, 0x10
test eax, eax
jl 0x41374f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
push 1
push ecx
push edx
push edi
add ebp, eax
call fcn.00411ba0
add esp, 0x10
test eax, eax
jl 0x41374f
add ebp, eax
mov dword [esp + 0x58], 0
test ebx, ebx
jle 0x4136a9
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ecx
jmp 0x4135ec
mov eax, dword [esp + 0x60]
mov eax, dword [eax + ebx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
push ecx
mov edx, dword [esi + 0xc]
push edx
push edi
call fcn.00411480
mov ecx, dword [esi + 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x4136a5
add ebp, eax
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x41365a
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
push ecx
mov edx, dword [esi + 0xc]
push edx
push edi
call fcn.00411480
mov ecx, dword [esi + 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x4136a5
jmp 0x41368b
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + ebx]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
lea esi, [ecx + eax*4]
push edx
mov eax, dword [esi + 0xc]
push eax
push edi
call fcn.00411480
mov ecx, dword [esi + 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x4136a5
mov ecx, dword [esp + 0x5c]
add ebp, eax
mov eax, dword [esp + 0x58]
add ebx, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x58], eax
jl 0x4135e8
mov esi, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
mov ecx, dword [esp + 0x50]
push ecx
call esi
mov edx, dword [esp + 0x58]
push edx
call esi
mov eax, dword [esp + 0x38]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x88]
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
mov edx, dword [esp + 0x8c]
push edx
call esi
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
add esp, 4
jmp 0x413711
mov esi, dword [sym.imp.MSVCRT.dll_free]
test edi, edi
je 0x41371b
push edi
call esi
add esp, 4
test ebp, ebp
je 0x413725
push ebp
call esi
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x413733
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413741
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x41374f
push eax
call esi
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x44
ret