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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c6f48
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x190]
mov edx, dword [esi + 0x338]
mov eax, dword [esi + 0x33c]
push edi
mov edi, dword [esi + 0x194]
sub ecx, edx
sbb edi, eax
js 0x49c7bb
jg 0x49c37b
cmp ecx, 0x14
jb 0x49c7bb
mov edx, dword [esi + 0x10]
test edx, edx
je 0x49c3b3
mov eax, dword [esi + 0x14]
sub eax, edx
sar eax, 2
test eax, eax
je 0x49c3b3
mov al, byte [esp + 0x70]
test al, al
je 0x49c3b3
mov al, byte [0x520bac]
test al, al
jne 0x49c3ac
mov eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x340], eax
mov byte [0x520bac], 1
push 0
push 0x14
push edi
push ecx
call fcn.004adf70
mov ecx, dword [esi + 0x1ac]
mov ebx, dword [esi + 0x340]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ebx
jne 0x49c3f1
xor ecx, ecx
jmp 0x49c3f9
mov ecx, dword [esi + 0x24]
sub ecx, eax
sar ecx, 2
dec ecx
cmp ebx, ecx
mov dword [esp + 0x30], ecx
jge 0x49c789
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + ebx*4 + 4]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
lea ebp, [ebx*4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
lea edi, [esp + 0x34]
xor eax, eax
mov dword [esp + 0x2c], ebp
sub edx, edi
fld dword [esp + eax*4 + 0x34]
lea edi, [edx + eax*4]
fsub dword [esp + edi + 0x34]
inc eax
cmp eax, 2
fstp dword [esp + eax*4 + 0x30]
jb 0x49c430
mov eax, dword [esp + 0x38]
fld dword [0x4fc4b8]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
xor eax, eax
lea ecx, [ecx]
fld dword [esp + eax*4 + 0x3c]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49c460
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49c489
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x49c48b
fsqrt
fadd dword [esp + 0x70]
fst dword [esp + 0x70]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x49c74b
mov ecx, dword [ecx + ebp + 4]
fld dword [0x4f2a08]
fsub dword [ecx + 4]
mov edi, dword [esi + 0x168]
xor edx, edx
fstp dword [esp + 0x14]
jmp 0x49c4c0
test edi, edi
je 0x49c509
mov eax, dword [esi + 0x16c]
sub eax, edi
sar eax, 3
cmp edx, eax
jae 0x49c509
mov ecx, dword [esi + 0x168]
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcom dword [ecx + edx*8]
fnstsw ax
test ah, 0x41
jne 0x49c75e
fcomp dword [ecx + edx*8 + 4]
fnstsw ax
test ah, 5
jp 0x49c760
mov dword [esp + 0x14], 0x44480000
mov edi, dword [esi + 0x178]
xor edx, edx
test edi, edi
je 0x49c55a
mov eax, dword [esi + 0x17c]
sub eax, edi
sar eax, 3
cmp edx, eax
jae 0x49c55a
mov ecx, dword [esi + 0x178]
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcom dword [ecx + edx*8]
fnstsw ax
test ah, 0x41
jne 0x49c766
fcomp dword [ecx + edx*8 + 4]
fnstsw ax
test ah, 5
jp 0x49c768
mov dword [esp + 0x14], 0x44898000
mov edi, 0xf
mov eax, 0x4f78e4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49c578
sub eax, edx
push eax
push 0x4f78e4
lea ecx, [esp + 0x4c]
call fcn.00402cd0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x78], 0
call fcn.00415620
mov ecx, eax
call fcn.00431b90
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x68], 2
jb 0x49c5cb
mov eax, dword [esp + 0x48]
push eax
call fcn.004ade5d
add esp, 4
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ebp + 4]
mov eax, dword [edx]
push ecx
mov ecx, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], edi
xor edi, edi
push eax
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
call fcn.00424870
mov ecx, dword [esp + 0x10]
push 1
push edi
call fcn.0042f400
mov al, byte [esi + 0x310]
test al, al
je 0x49c707
mov eax, dword [esi + 0x2bc]
mov ecx, dword [eax + 0x28]
mov ebp, dword [str._n2Px_dx_]
mov ecx, dword [ecx*4 + 0x4f731c]
mov eax, dword [esi + 0x2c0]
imul ecx, ebp
mov edx, dword [eax]
add edx, ecx
push 8
mov dword [eax], edx
call fcn.004ad909
add esp, 4
cmp eax, edi
je 0x49c64e
mov dword [eax + 4], edi
mov dword [eax], 0x4f6724
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x49c659
inc dword [edi + 4]
sub esp, 0x1c
mov ecx, esp
mov eax, 0x4f130c
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov byte [esp + 0x84], 3
mov dword [esp + 0x30], esp
mov byte [ecx + 4], 0
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x49c684
sub eax, edx
push eax
push 0x4f130c
call fcn.00402cd0
mov eax, dword [esi + 0x2bc]
mov edx, dword [eax + 0x28]
mov edx, dword [edx*4 + 0x4f731c]
mov ecx, dword [esi + 0x20]
imul edx, ebp
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + ecx + 4]
mov ecx, dword [ebx + ecx + 4]
push 0
fld dword [eax + 4]
push 0
fld dword [ecx]
push edx
add eax, 4
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x60], esp
push 0
fstp dword [eax]
mov ecx, edi
mov dword [eax + 8], 0xc4160000
fstp dword [eax + 4]
call fcn.004ad130
test edi, edi
mov byte [esp + 0x68], 2
je 0x49c703
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x49c703
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ebx, dword [esp + 0x18]
fld dword [esp + 0x70]
mov eax, dword [esp + 0x20]
fsub dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
fstp dword [esp + 0x70]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
jge 0x49c76e
test eax, eax
je 0x49c74b
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x49c74b
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x49c406
jmp 0x49c789
fstp st(0)
inc edx
jmp 0x49c4c0
fstp st(0)
inc edx
jmp 0x49c511
test eax, eax
je 0x49c789
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x49c789
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x24]
push 0
cdq
push 0x14
push edx
push eax
call fcn.004adf30
mov ecx, dword [esi + 0x338]
add ecx, eax
mov eax, dword [esi + 0x33c]
adc eax, edx
mov dword [esi + 0x338], ecx
mov dword [esi + 0x33c], eax
mov dword [esi + 0x340], ebx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 4