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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x5f300c]
xor eax, esp
mov dword [esp + 0x58], eax
fld dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x28], ecx
call fcn.0059f540
fld dword [ebp + 0xc]
mov edi, eax
call fcn.0059f540
fld dword [ebp + 0x10]
mov esi, eax
call fcn.0059f540
fld dword [ebp + 0x14]
mov ebx, eax
call fcn.0059f540
mov dword [esp + 0x5c], ebx
sub ebx, edi
mov dword [esp + 0x60], eax
sub eax, esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x403bf0
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ebx
push dword [eax + 8]
call fcn.00403670
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
test esi, esi
je 0x403bb6
test edi, edi
je 0x403bb6
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x403bb2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jl 0x4039a5
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax - 2]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x4039bc
mov dword [esp + 0x18], eax
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
call fcn.00403600
mov ecx, dword [ebp + 0x28]
add esp, 4
mov dword [esp + 0x24], eax
push dword [ebp + 0x24]
call fcn.00403600
xor edi, edi
mov dword [esp + 0x34], eax
add esp, 4
cmp dword [esp + 0x1c], edi
jle 0x403a4a
mov eax, dword [esp + 0x44]
mov edx, esi
mov esi, dword [esp + 0x30]
shl eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
xor ecx, ecx
test ebx, ebx
jle 0x403a39
test ecx, ecx
je 0x403a27
lea eax, [ebx - 1]
cmp ecx, eax
je 0x403a27
test edi, edi
je 0x403a27
mov eax, dword [esp + 0x1c]
dec eax
cmp edi, eax
je 0x403a27
mov eax, dword [esp + 0x24]
mov dword [edx], eax
jmp 0x403a29
mov dword [edx], esi
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x403a07
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x10], edx
cmp edi, eax
jl 0x403a01
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
test eax, eax
jle 0x403b10
mov ebx, edx
xor edi, edi
neg ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ebx
mov eax, 1
lea ebx, [ecx - 1]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
imul ebx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
xor ecx, ecx
test eax, eax
jle 0x403aea
mov edi, ebx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x10]
jmp 0x403aa0
lea eax, [ebx + ecx]
mov dword [esi + eax*4], 0
lea eax, [ebx + edx]
sub ebx, dword [esp + 0x50]
mov dword [esi + eax*4 - 4], 0
lea eax, [ecx + edi]
mov dword [esi + eax*4], 0
inc ecx
lea eax, [edx + edi]
add edi, dword [esp + 0x44]
mov dword [esi + eax*4 - 4], 0
lea edx, [edx - 1]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jl 0x403aa0
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add ebx, dword [esp + 0x2c]
inc eax
add edi, edx
mov dword [esp + 0x14], eax
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edi
jne 0x403a87
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov edi, 1
cmp eax, edi
jle 0x403b80
mov ebx, dword [esp + 0x18]
sub ecx, eax
imul ecx, edx
lea eax, [edx - 1]
mov dword [esp + 0x10], eax
dec ebx
mov eax, edx
neg eax
imul ebx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
lea ecx, [ecx]
mov edx, dword [esp + 0x44]
lea eax, [ebx + edi]
mov dword [esi + eax*4], ecx
mov eax, dword [esp + 0x10]
add eax, ebx
add ebx, dword [esp + 0x2c]
mov dword [esi + eax*4 - 4], ecx
mov eax, dword [esp + 0x14]
add eax, edi
inc edi
mov dword [esi + eax*4], ecx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
add dword [esp + 0x14], edx
dec dword [esp + 0x10]
mov dword [esi + eax*4 - 4], ecx
cmp edi, dword [esp + 0x18]
jl 0x403b40
mov ebx, dword [esp + 0x34]
push dword [0x5add50]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
push eax
push ebx
push 0
push 0
push esi
push eax
mov eax, dword [esp + 0x44]
push ebx
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [eax + 8]
call dword [0x5ad274]
mov edi, dword [esp + 0x3c]
jmp 0x403bb6
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403bc6
push eax
push esi
call dword [0x5ad058]
test edi, edi
je 0x403bd1
push edi
call dword [0x5ad0b4]
test esi, esi
je 0x403c46
push esi
call dword [0x5ad084]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0x28
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 0x24]
mov edi, dword [0x5ad058]
cmp dword [ebx + 0x18], 0
je 0x403c22
push dword [ebx + 0x1c]
push dword [ebx + 8]
call edi
push dword [ebx + 0x18]
call dword [0x5ad0b4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push esi
call dword [0x5ad0b8]
push eax
push dword [ebx + 8]
mov dword [ebx + 0x18], eax
call edi
push dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
lea eax, [esp + 0x58]
push eax
push dword [ebx + 8]
call dword [0x5ad628]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0x28