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

Disassembly:
sub esp, 0x88
fld dword [esp + 0x90]
push ebx
fadd qword [0x48b4b0]
push ebp
fnstcw word [esp + 0x1c]
push esi
movzx eax, word [esp + 0x20]
or eax, 0xc00
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xac]
fldcw word [esp + 0x24]
sub eax, dword [esp + 0xa4]
push edi
fistp qword [esp + 0x28]
mov ebx, dword [esp + 0x28]
lea ecx, [ebx + ebx]
fldcw word [esp + 0x24]
cmp ecx, eax
jbe 0x4200f5
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xac]
lea edx, [ebx + ebx]
cmp edx, eax
jbe 0x420111
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push 4
lea esi, [ebx + ebx]
call fcn.0045bbe0
xor ebp, ebp
add esp, 4
mov dword [esp + 0x74], eax
cmp eax, ebp
je 0x42012e
mov dword [eax], 1
mov eax, esi
mov dword [esp + 0x84], ebp
mov byte [esp + 0x88], 1
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x94], ebp
cmp esi, ebp
je 0x420189
cmp eax, ebp
je 0x420189
lea esi, [esp + 0x74]
call fcn.0040f4f0
test eax, eax
je 0x420190
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebp
jmp 0x420190
mov dword [esp + 0x84], ebp
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
or edx, ecx
or esi, ecx
or edi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
lea ecx, [esp + 0x84]
mov dword [eax + 0xc], edi
call fcn.0040f350
lea eax, [ebx - 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
test eax, eax
jge 0x4201ca
fadd dword [0x490020]
or ecx, 0xffffffff
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
fst dword [esp + 0x78]
or edx, ecx
fstp dword [esp + 0x7c]
mov dword [eax], ecx
mov dword [eax + 4], edx
or esi, ecx
or edi, ecx
mov ecx, dword [esp + 0xb4]
mov edx, ebx
mov dword [eax + 8], esi
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
mov dword [eax + 0xc], edi
push ecx
test edx, edx
jge 0x42020f
fadd qword [0x490228]
fadd qword [0x490038]
push ecx
lea eax, [esp + 0x8c]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
push eax
lea eax, [esp + 0x84]
call fcn.00420560
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
lea edx, [ecx + ebx]
mov dword [esp + 0x84], edx
lea edx, [eax + ebx]
add esp, 0x1c
mov edi, ecx
mov esi, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
jmp 0x42026f
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov ebp, esi
mov edx, ecx
cmp eax, 1
je 0x420299
cmp eax, 3
jne 0x4202b9
mov eax, dword [esp + 0xb0]
mov edx, eax
sub edx, dword [esp + 0x7c]
sub eax, ecx
sub eax, ebx
add dword [esp + 0x1c], eax
lea ecx, [edi + eax]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
cmp eax, 1
je 0x4202c3
cmp eax, 2
jne 0x4202e7
mov eax, dword [esp + 0xb4]
mov ecx, eax
sub eax, dword [esp + 0xac]
sub ecx, dword [esp + 0x80]
sub eax, ebx
add dword [esp + 0x20], eax
mov dword [esp + 0x70], ecx
lea ebp, [eax + esi]
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x14], eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x90], edx
jge 0x42030a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xbc]
cmp ebp, eax
jge 0x420317
mov ebp, eax
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0x1c], eax
jle 0x420328
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
cmp dword [esp + 0x20], eax
jle 0x420339
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
lea edx, [esp + 0x84]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xac]
push edx
push eax
call fcn.0040fc50
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 4
jb 0x420261
mov edx, dword [esp + 0xb0]
sub edx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb4]
sub ebp, dword [esp + 0xac]
mov eax, edx
sub eax, ebx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x28]
add dword [esp + 0x40], edi
mov ecx, ebp
sub ecx, ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x60], eax
add dword [esp + 0x60], edi
mov dword [esp + 0x54], ecx
add dword [esp + 0x54], esi
mov dword [esp + 0x18], ecx
add dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
add dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
add dword [esp + 0x20], esi
mov dword [esp + 0x38], eax
add dword [esp + 0x38], edi
mov dword [esp + 0x44], ecx
add dword [esp + 0x44], esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xb8]
add eax, edi
add ecx, esi
cmp ebx, edx
mov ebp, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jge 0x420429
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0xbc]
cmp esi, ebx
mov dword [esp + 0x5c], ebx
jl 0x42043c
mov dword [esp + 0x5c], esi
mov ebx, dword [esp + 0xc0]
cmp dword [esp + 0x60], ebx
jle 0x42044d
mov dword [esp + 0x60], ebx
mov esi, dword [esp + 0xc4]
cmp dword [esp + 0x64], esi
jle 0x42045e
mov dword [esp + 0x64], esi
cmp edi, edx
jge 0x420466
mov dword [esp + 0x48], edx
mov edi, dword [esp + 0xbc]
cmp dword [esp + 0x4c], edi
jge 0x420477
mov dword [esp + 0x4c], edi
cmp dword [esp + 0x50], ebx
jle 0x420481
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x54], esi
jle 0x42048b
mov dword [esp + 0x54], esi
cmp ebp, edx
jge 0x420493
mov dword [esp + 0x28], edx
cmp dword [esp + 0x2c], edi
jge 0x42049d
mov dword [esp + 0x2c], edi
cmp eax, ebx
jle 0x4204a5
mov dword [esp + 0x30], ebx
cmp ecx, esi
jle 0x4204ad
mov dword [esp + 0x34], esi
cmp dword [esp + 0x38], edx
jge 0x4204b7
mov dword [esp + 0x38], edx
cmp dword [esp + 0x3c], edi
jge 0x4204c1
mov dword [esp + 0x3c], edi
cmp dword [esp + 0x40], ebx
jle 0x4204cb
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x44], esi
jle 0x4204d5
mov dword [esp + 0x44], esi
cmp dword [esp + 0x14], edx
jge 0x4204df
mov dword [esp + 0x14], edx
cmp dword [esp + 0x18], edi
jge 0x4204e9
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1c], ebx
jle 0x4204f3
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x20], esi
jle 0x4204fd
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0x9c]
push esi
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.004108a0
push esi
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.004108a0
push esi
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.004108a0
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.004108a0
push esi
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.004108a0
lea esi, [esp + 0x74]
call fcn.0040f210
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret