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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x10]
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
sub eax, esi
sar eax, 4
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
push edi
sar ebx, 1
push eax
add ecx, 0xfffffff0
shl ebx, 4
push ecx
add ebx, esi
push ebx
push esi
call fcn.00402dd0
add esp, 0x10
mov ecx, ebx
lea edi, [ebx + 0x10]
cmp esi, ebx
jae 0x403fb1
fld qword [ecx]
fcomp qword [ecx - 0x10]
fnstsw ax
test ah, 0x41
je 0x403fb1
fld qword [ecx]
fcomp qword [ecx - 0x10]
fnstsw ax
test ah, 5
jnp 0x403f85
fld qword [ecx + 8]
fcomp qword [ecx - 8]
fnstsw ax
test ah, 0x41
je 0x403fb1
fld qword [ecx - 0x10]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
je 0x403fb1
fld qword [ecx - 0x10]
fcomp qword [ecx]
fnstsw ax
test ah, 5
jnp 0x403faa
fld qword [ecx - 8]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
je 0x403fb1
add ecx, 0xfffffff0
cmp esi, ecx
jb 0x403f60
mov edx, dword [ebp + 0x10]
cmp edi, edx
jae 0x404005
fld qword [ecx]
fcomp qword [edi]
fnstsw ax
test ah, 0x41
je 0x404005
fld qword [ecx]
fcomp qword [edi]
fnstsw ax
test ah, 5
jnp 0x403fdb
fld qword [ecx + 8]
fcomp qword [edi + 8]
fnstsw ax
test ah, 0x41
je 0x404005
fld qword [edi]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
je 0x404005
fld qword [edi]
fcomp qword [ecx]
fnstsw ax
test ah, 5
jnp 0x403ffe
fld qword [edi + 8]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
je 0x404005
add edi, 0x10
cmp edi, edx
jb 0x403fb8
mov edx, edi
mov ebx, ecx
cmp edx, dword [ebp + 0x10]
jae 0x4040bd
fld qword [edx]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
je 0x4040b1
fld qword [edx]
fcomp qword [ecx]
fnstsw ax
test ah, 5
jnp 0x404039
fld qword [edx + 8]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
je 0x4040b1
fld qword [ecx]
fcomp qword [edx]
fnstsw ax
test ah, 0x41
je 0x4040bd
fld qword [ecx]
fcomp qword [edx]
fnstsw ax
test ah, 5
jnp 0x40405c
fld qword [ecx + 8]
fcomp qword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x4040bd
mov eax, edi
add edi, 0x10
cmp eax, edx
je 0x4040b1
mov esi, dword [eax]
mov dword [esp + 0x10], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x1c], esi
mov esi, dword [edx]
mov dword [eax], esi
mov esi, dword [edx + 4]
mov dword [eax + 4], esi
mov esi, dword [edx + 8]
mov dword [eax + 8], esi
mov esi, dword [edx + 0xc]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
add edx, 0x10
cmp edx, dword [ebp + 0x10]
jb 0x404012
cmp ebx, dword [ebp + 0xc]
jbe 0x404178
lea esi, [ebx - 0x10]
fld qword [ecx]
fcomp qword [esi]
fnstsw ax
test ah, 0x41
je 0x404166
fld qword [ecx]
fcomp qword [esi]
fnstsw ax
test ah, 5
jnp 0x4040f0
fld qword [ecx + 8]
fcomp qword [esi + 8]
fnstsw ax
test ah, 0x41
je 0x404166
fld qword [esi]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
je 0x404175
fld qword [esi]
fcomp qword [ecx]
fnstsw ax
test ah, 5
jnp 0x404113
fld qword [esi + 8]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
je 0x404175
sub ecx, 0x10
cmp ecx, esi
je 0x404166
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
sub ebx, 0x10
sub esi, 0x10
cmp dword [ebp + 0xc], ebx
jb 0x4040c9
cmp ebx, dword [ebp + 0xc]
jne 0x404251
cmp edx, dword [ebp + 0x10]
je 0x40434c
cmp edi, edx
je 0x4041d3
cmp ecx, edi
je 0x4041d3
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x44], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x48], esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x4c], esi
mov esi, dword [edi]
mov dword [ecx], esi
mov esi, dword [edi + 4]
mov dword [ecx + 4], esi
mov esi, dword [edi + 8]
mov dword [ecx + 8], esi
mov esi, dword [edi + 0xc]
mov dword [ecx + 0xc], esi
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov esi, edx
mov eax, ecx
add edi, 0x10
add ecx, 0x10
add edx, 0x10
mov dword [esp + 0xc], esi
cmp eax, esi
je 0x404009
mov esi, dword [eax]
mov dword [esp + 0x30], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x38], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xc]
mov esi, dword [esi]
mov dword [eax], esi
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 4]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0xc]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
mov dword [eax], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [eax + 0xc], esi
jmp 0x404009
sub ebx, 0x10
cmp edx, dword [ebp + 0x10]
jne 0x4042fc
sub ecx, 0x10
cmp ebx, ecx
je 0x4042a8
mov esi, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x54], esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x58], esi
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x5c], esi
mov esi, dword [ecx]
mov dword [ebx], esi
mov esi, dword [ecx + 4]
mov dword [ebx + 4], esi
mov esi, dword [ecx + 8]
mov dword [ebx + 8], esi
mov esi, dword [ecx + 0xc]
mov dword [ebx + 0xc], esi
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0xc], eax
sub edi, 0x10
cmp ecx, edi
je 0x404009
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esp + 0x64], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x6c], esi
mov esi, dword [edi]
mov dword [ecx], esi
mov esi, dword [edi + 4]
mov dword [ecx + 4], esi
mov esi, dword [edi + 8]
mov dword [ecx + 8], esi
mov esi, dword [edi + 0xc]
mov dword [ecx + 0xc], esi
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0xc], eax
jmp 0x404009
cmp edx, ebx
je 0x404344
mov esi, dword [edx + 4]
mov eax, dword [edx]
mov dword [esp + 0x74], esi
mov esi, dword [edx + 8]
mov dword [esp + 0x78], esi
mov esi, dword [edx + 0xc]
mov dword [esp + 0x7c], esi
mov esi, dword [ebx]
mov dword [edx], esi
mov esi, dword [ebx + 4]
mov dword [edx + 4], esi
mov esi, dword [ebx + 8]
mov dword [edx + 8], esi
mov esi, dword [ebx + 0xc]
mov dword [edx + 0xc], esi
mov dword [ebx], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xc], eax
add edx, 0x10
jmp 0x404009
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret