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

Disassembly:
push 0xffffffffffffffff
push 0x4cf1d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebp
push esi
mov esi, ecx
mov eax, 1
push 0x40e
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x3f800000
call fcn.004ccc7e
mov ebp, eax
push 0xd0d0d0
push ebp
mov ecx, esi
call fcn.00412590
mov ecx, dword [esi + 0x210]
test ecx, ecx
je 0x412571
call fcn.0046b360
test eax, eax
mov dword [esp + 0x44], eax
je 0x412571
mov ecx, esi
call fcn.004110c0
mov eax, dword [ebp + 0x20]
push eax
call dword [0x4dabe8]
push eax
call fcn.004cce3a
push 3
lea ecx, [esi + 0x218]
mov dword [esp + 0x34], eax
call fcn.004cd18e
test eax, eax
jne 0x412151
mov eax, 0x4f760c
mov ecx, dword [esi + 0x1e8]
push ebx
test ecx, ecx
push edi
jne 0x412168
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
jmp 0x412171
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov ebx, dword [0x4daa3c]
push edx
push 0x4f7800
push eax
call ebx
add esp, 0x10
add esi, 0x220
mov ecx, esi
push 3
call fcn.004cd18e
test eax, eax
je 0x412204
lea ecx, [esp + 0x48]
push ecx
push 0x4f7940
push eax
call ebx
add esp, 0xc
mov ecx, esi
push 0x58
push 3
call fcn.004cd18e
mov edi, dword [0x4daa44]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4121d6
push 0x78
push 3
mov ecx, esi
call fcn.004cd18e
push eax
call edi
add esp, 8
test eax, eax
je 0x4121e7
lea edx, [esp + 0x34]
inc eax
push edx
push 0x4f7940
push eax
call ebx
add esp, 0xc
fld dword [esp + 0x34]
fcomp dword [0x4dca58]
fnstsw ax
test ah, 0x41
jne 0x412204
fld dword [esp + 0x48]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x18]
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [0x4dacac]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
sub esi, ecx
sub edi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
fild dword [esp + 0x20]
fild dword [esp + 0x1c]
mov ebx, esi
mov dword [esp + 0x28], edi
fstp dword [esp + 0x24]
fld st(0)
fdiv dword [esp + 0x24]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x41225f
fdiv dword [esp + 0x18]
call fcn.004cd7a0
mov edi, eax
jmp 0x412270
fstp st(0)
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
call fcn.004cd7a0
mov esi, eax
mov ecx, dword [esp + 0x14]
mov eax, esi
mov ebp, dword [esp + 0x10]
lea edx, [ecx + ecx]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x18], eax
lea eax, [ebp + ebp]
mov edx, eax
mov eax, edi
sub eax, edx
cdq
idiv ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov edx, eax
mov eax, esi
imul edx, ecx
imul ecx, ebp
sub eax, edx
add eax, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add edx, eax
mov eax, dword [esp + 0x2c]
add eax, 2
mov dword [esp + 0x3c], edx
mov edx, eax
mov eax, edi
imul edx, ebp
sub eax, edx
add eax, 2
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x28]
sub eax, edi
cdq
sub eax, edx
shl ecx, 2
sar ebx, 1
sar eax, 1
push ecx
add ebx, eax
call fcn.004ccca2
mov ebp, eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x40], ebp
mov ecx, dword [eax + 0x1e8]
test ecx, ecx
jne 0x412344
mov eax, dword [esp + 0x10]
xor edx, edx
xor edi, edi
test eax, eax
jle 0x412383
mov ecx, dword [esp + 0x14]
xor esi, esi
test ecx, ecx
jle 0x412339
lea eax, [ebp + edx*4]
mov dword [eax], edx
mov ecx, dword [esp + 0x14]
inc esi
inc edx
add eax, 4
cmp esi, ecx
jl 0x41232a
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x412320
jmp 0x412387
mov eax, dword [esp + 0x10]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x412383
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x412378
lea edx, [ebp + edi*4]
inc eax
add edx, 4
mov ecx, eax
imul ecx, dword [esp + 0x10]
sub ecx, esi
dec ecx
inc edi
mov dword [edx - 4], ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x41235e
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x412354
jmp 0x412387
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
jle 0x412550
mov dword [esp + 0x24], ebx
xor ebx, ebx
test ecx, ecx
jle 0x41252a
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
lea ebp, [ebp + edx*4]
mov eax, dword [esp + 0x4c]
mov edx, dword [ebp]
cmp edx, eax
jge 0x412508
lea ecx, [esp + 0x64]
call fcn.0045d5a0
lea ecx, [esp + 0x530]
mov dword [esp + 0x868], 0
call fcn.0047ab50
mov ecx, dword [ebp]
mov esi, dword [esp + 0x30]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x210]
mov byte [esp + 0x874], 1
call fcn.0048bfb0
push eax
lea ecx, [esp + 0x53c]
call fcn.00494ab0
push 0
push 0
lea edx, [esp + 0x68]
push 0xa
push edx
push 0
lea ecx, [esp + 0x544]
call fcn.0047b140
push eax
lea ecx, [esp + 0x6c]
call fcn.0045fec0
cmp dword [esi + 0x1e8], 1
jne 0x41244c
push 0x10e
lea ecx, [esp + 0x68]
call fcn.00462450
lea ecx, [esp + 0x64]
call fcn.0045d7e0
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x64]
fild dword [esp + 0x1c]
fstp dword [esp + 0x44]
call fcn.0045d7f0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fdivr dword [esp + 0x44]
fild dword [esp + 0x18]
fild dword [esp + 0x2c]
fstp dword [esp + 0x1c]
fld st(0)
fdiv dword [esp + 0x1c]
fld st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4124a4
fdiv st(1)
call fcn.004cd7a0
mov esi, eax
mov eax, dword [esp + 0x18]
fstp st(0)
jmp 0x4124b7
mov esi, dword [esp + 0x2c]
fstp st(0)
fld dword [esp + 0x1c]
fmul st(1)
call fcn.004cd7a0
fstp st(0)
push 0
push esi
push eax
lea ecx, [esp + 0x70]
call fcn.004624e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push 0
push 0
push eax
push edi
push ecx
lea ecx, [esp + 0x78]
call fcn.0045da00
lea ecx, [esp + 0x530]
mov byte [esp + 0x868], 0
call fcn.0047abd0
lea ecx, [esp + 0x64]
mov dword [esp + 0x868], 0xffffffff
call fcn.0045d650
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
inc ebx
add ebp, 4
lea eax, [edx + 2]
add edi, eax
inc esi
cmp ebx, ecx
mov dword [esp + 0x28], esi
jl 0x4123b7
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, 2
add esi, eax
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x24], esi
cmp edx, eax
mov dword [esp + 0x20], edx
jl 0x4123a1
push ebp
call fcn.004ccb34
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
add esp, 4
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push edx
push ecx
call dword [0x4dabf4]
pop edi
pop ebx
mov ecx, dword [esp + 0x858]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x85c
ret