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

Disassembly:
sub esp, 0x670
push ebx
push ebp
push esi
push edi
push 0xbf5
call fcn.0041589a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x403a55
mov esi, dword [esp + 0x684]
mov ecx, 5
lea edi, [esp + 0x28]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x2e]
mov ecx, 0xc
lea edi, [esp + 0xa0]
push 1
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x2c]
mov ecx, dword [esp + 0x2e]
mov dword [esp + 0xb9], edx
mov byte [esp + 0xb3], al
mov eax, dword [esp + 0x36]
mov dword [esp + 0xb5], ecx
mov ecx, dword [esp + 0x3b]
lea edx, [esp + 0x20]
push str._02d
push edx
mov dword [esp + 0xc5], eax
mov dword [esp + 0xca], ecx
call fcn.004157b1
mov ebx, dword [esp + 0x694]
mov ax, word [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x1c]
mov word [esp + 0xc9], ax
push ebx
push str._02d
push ecx
call fcn.004157b1
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0xcc]
push 2
push edx
push eax
call fcn.004157b1
add esp, 0xc
cmp ebx, 1
mov ebp, ebx
jl 0x40368c
mov ecx, 0xc
lea esi, [esp + 0xa0]
lea edi, [esp + 0x40]
push ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x70]
push str._02d
push ecx
call fcn.004157b1
lea edx, [esp + 0x4c]
push 0x4b0cd4
push edx
call fcn.004127a0
add esp, 0x14
test eax, eax
je 0x40368c
cmp ebp, 1
je 0x403a55
dec ebp
cmp ebp, 1
jge 0x403645
push ebp
lea eax, [esp + 0xd0]
push str._02d
push eax
call fcn.004157b1
mov ecx, 0xc
lea esi, [esp + 0xac]
lea edi, [esp + 0x4c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb4
lea edi, [esp + 0x3bc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3b4]
push ecx
push edx
call fcn.00412520
add esp, 0x14
test eax, eax
jl 0x403a55
mov ecx, 0xb4
xor eax, eax
lea edi, [esp + 0xd8]
lea esi, [esp + 0x3b0]
rep stosd dword es:[edi], eax
mov ecx, 0xb4
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xdb]
mov edi, 0x5a
push 2
push esi
call fcn.00403a70
add esp, 8
cmp eax, 1
jl 0x40373d
push 2
push esi
call fcn.00403a70
add esp, 8
cmp eax, ebx
jge 0x40373d
push ebx
push str._02d
push esi
call fcn.004157b1
add esp, 0xc
add esi, 8
dec edi
jne 0x40370f
mov ecx, 0xc
lea esi, [esp + 0xa0]
lea edi, [esp + 0x40]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, str.f300b
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str._02d
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.004157b1
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x6c]
push 2
push edx
push eax
call fcn.004157b1
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xdc]
push ecx
push edx
call fcn.00412490
add esp, 0x14
test eax, eax
jl 0x403a55
xor edi, edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], edi
lea esi, [esp + edi + 0x3b3]
push 2
push esi
call fcn.00403a70
add esp, 8
test eax, eax
jne 0x4038f8
push 2
push esi
call fcn.00403a70
mov ebp, eax
lea eax, [esp + edi + 0xe3]
push 2
push eax
call fcn.00403a70
add esp, 0x10
cmp ebp, 1
mov dword [esp + 0x3c], eax
jl 0x4038f8
cmp ebp, 0x63
jg 0x4038f8
mov ecx, dword [esp + 0x10]
push ecx
push 0x4b0a60
call fcn.00413390
add esp, 8
mov ecx, 0xc
lea esi, [esp + 0xa0]
lea edi, [esp + 0x40]
push ebp
lea edx, [esp + 0x70]
push str._02d
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004157b1
mov ebp, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x66]
push ebp
push str._02d
push eax
call fcn.004157b1
lea ecx, [esp + 0x4c]
push ecx
push 0x4b0a60
call fcn.00413460
add esp, 0x14
test eax, eax
jl 0x403a55
mov edx, dword [esp + 0x3c]
mov ecx, 0xc
lea esi, [esp + 0xa0]
lea edi, [esp + 0x40]
push edx
lea eax, [esp + 0x70]
push str._02d
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004157b1
add esp, 0xc
lea ecx, [esp + 0x66]
push ebp
push str._02d
push ecx
call fcn.004157b1
mov edi, str.f300b
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push 0x4b0a60
call fcn.004133d0
add esp, 0x14
test eax, eax
jl 0x403a55
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add edi, 8
inc edx
cmp edi, 0x2c8
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
jle 0x4037ca
push 0x2778
call fcn.0041589a
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x403a35
mov edx, dword [esp + 0x2e]
mov ecx, 0x9de
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x28]
mov ecx, dword [esp + 0x2a]
mov dword [esp + 0x85], edx
mov byte [esp + 0x7f], al
mov eax, dword [esp + 0x32]
mov dword [esp + 0x81], ecx
mov ecx, dword [esp + 0x37]
push 1
lea edx, [esp + 0x9d]
push str._02d
push edx
mov dword [esp + 0x95], eax
mov dword [esp + 0x9a], ecx
call fcn.004157b1
add esp, 0xc
lea eax, [esp + 0x9c]
push ebx
push str._02d
push eax
call fcn.004157b1
add esp, 0xc
cmp ebx, 1
mov esi, ebx
jl 0x4039dd
push esi
lea ecx, [esp + 0xa0]
push str._02d
push ecx
call fcn.004157b1
lea edx, [esp + 0x7c]
push 0x4b0cd4
push edx
call fcn.00412ae0
add esp, 0x14
test eax, eax
je 0x4039dd
cmp esi, 1
je 0x403a35
dec esi
cmp esi, 1
jge 0x4039a9
push esi
lea eax, [esp + 0xa0]
push str._02d
push eax
call fcn.004157b1
lea ecx, [esp + 0x7c]
push ecx
push ebp
call fcn.00412860
add esp, 0x14
test eax, eax
jl 0x403a35
push ebx
lea edx, [esp + 0xa0]
push str._02d
push edx
call fcn.004157b1
add esp, 0xc
lea eax, [esp + 0x70]
push str.f300b
push eax
call fcn.004157b1
lea ecx, [esp + 0x78]
push ecx
push ebp
call fcn.004127c0
add esp, 0x10
push ebp
call fcn.00415831
mov edx, dword [esp + 0x14]
push edx
call fcn.00415831
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.00415831
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret