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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov esi, 0x200
push esi
call 0x5b87ef
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x1c], 0
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
jne 0x5149c1
lea eax, [ebx + 0x98]
mov dword [esp + 0x2c], eax
mov ecx, dword [0x53c018]
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
push esi
call dword [eax + 0x38]
cmp eax, 0xfffffff1
mov dword [esp + 0x20], eax
jne 0x51451b
push dword [esp + 0x10]
call 0x5b9b0d
pop ecx
push dword [esp + 0x18]
call 0x5b87ef
pop ecx
mov ecx, dword [0x53c018]
mov edx, dword [ecx]
lea edi, [esp + 0x18]
push edi
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [edx + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x514560
push ebx
call dword [fcn.004f62dc]
push 0xa
pop ecx
lea eax, [esp + 0x58]
push eax
lea eax, [ebx + 0x78]
lea edi, [esp + 0x5c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00518c8c
mov eax, dword [eax]
push ebx
mov dword [ebx + 0xc0], eax
call dword [fcn.004f62cc]
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x5149b7
push eax
push ebx
call fcn.00516e1d
mov edi, eax
xor edx, edx
cmp edi, edx
mov dword [esp + 0x24], edi
je 0x5149b7
cmp dword [esp + 0x20], edx
jne 0x514996
mov eax, dword [edi + 0x30]
cmp eax, edx
jne 0x5145ff
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 3
test cl, 7
je 0x51459a
inc eax
cmp dword [ebx + 0x1c], edx
jne 0x514883
cmp dword [ebx + 0x18], edx
jne 0x514883
mov edx, dword [esp + 0x10]
push dword [edx]
add edi, 0x17
push eax
push ecx
push edi
mov esi, 0x53c9e0
call 0x59c71b
cmp dword [0x53cb0c], 0
je 0x514883
xor eax, eax
cmp dword [0x53cb14], eax
jle 0x5145ec
cmp edi, eax
je 0x5145e4
mov eax, edi
call fcn.005149d4
test eax, eax
je 0x514883
mov edi, esi
call 0x59f9a2
and dword [0x53cb0c], 0
jmp 0x514883
cmp eax, 1
jne 0x514883
cmp dword [ebx + 0xd0], edx
jg 0x51475c
push dword [0x53c9f8]
push ebx
lea ebx, [esp + 0x3c]
call fcn.00516eb5
test eax, eax
mov dword [esp + 0x38], eax
je 0x5149b4
mov eax, dword [edi + 0x38]
mov ecx, eax
imul ecx, ecx, 0x218
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov esi, 0x218
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x5b87ef
pop ecx
mov ecx, dword [0x53c018]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
xor ebx, ebx
lea edx, [edi + 4]
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call dword [eax + 0x18]
test eax, eax
jne 0x51474f
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
jle 0x5146cf
cmp ecx, dword [esp + 0x34]
jge 0x5146cf
mov edi, dword [eax + 4]
mov edx, dword [eax]
xor ecx, ecx
xor ebx, ebx
or ecx, edi
mov edi, dword [esp + 0x24]
or edx, ebx
add dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
adc dword [esp + 0x4c], edx
add eax, esi
inc ecx
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
jl 0x51469f
mov eax, dword [edi + 0x40]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x54], eax
fild qword [esp + 0x50]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
fstp dword [esp + 0x20]
fild qword [esp + 0x48]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fild dword [esi + 4]
jge 0x514709
fadd dword [0x51bae0]
fmulp st(1)
call 0x5d4210
mov edi, dword [ebp + 8]
mov dword [edi + 0xcc], eax
mov eax, dword [esp + 0x38]
fild qword [eax + 8]
mov eax, dword [esi + 4]
test eax, eax
fdiv dword [esp + 0x20]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fild dword [esi + 4]
jge 0x51473c
fadd dword [0x51bae0]
fmulp st(1)
fadd qword [0x51bb68]
call 0x5d4210
mov dword [edi + 0xd0], eax
push dword [esp + 0x14]
call 0x5b9b0d
mov ebx, dword [ebp + 8]
pop ecx
mov eax, dword [ebx + 0xd0]
test eax, eax
jle 0x5149b7
mov ecx, eax
and ecx, 0x80000007
jns 0x514779
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
je 0x514789
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
inc edi
jmp 0x514793
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
cmp dword [ebx + 0x1c], 0
jne 0x514883
cmp dword [ebx + 0x18], 0
jne 0x514883
mov esi, dword [ebx + 0xcc]
and esi, 0x80000007
jns 0x5147ba
dec esi
or esi, 0xfffffff8
inc esi
push edi
call 0x5b87ef
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xcc]
cdq
and edx, 7
add eax, edx
sar eax, 3
test esi, esi
pop ecx
je 0x514848
lea ecx, [eax + edi]
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
jge 0x51485e
mov edx, dword [esp + 0x10]
lea ecx, [edx + 0x18]
sub edx, ecx
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 8
sub dword [esp + 0x20], eax
add edx, 0x17
sub ecx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
jmp 0x51481a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dl, byte [ecx + esi]
mov ecx, dword [esp + 0x20]
shl dl, cl
mov cl, al
mov al, byte [esi]
sar al, cl
mov ecx, dword [esp + 0x40]
or dl, al
mov eax, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc eax
inc esi
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
jl 0x514816
jmp 0x51485e
mov ecx, dword [esp + 0x10]
push edi
lea eax, [eax + ecx + 0x17]
push eax
push dword [esp + 0x1c]
call 0x5bd300
add esp, 0xc
mov eax, dword [esp + 0x10]
push dword [eax]
mov esi, 0x53c9e0
push edi
push dword [ebx + 0xd0]
push dword [esp + 0x20]
call 0x59c71b
push dword [esp + 0x14]
call 0x5b9b0d
pop ecx
push dword [0x53c9f8]
mov esi, ebx
call fcn.00516e8f
mov esi, eax
test esi, esi
je 0x514996
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
xor ecx, ecx
xor edi, edi
or ecx, edx
mov edx, dword [esi + 8]
or eax, edi
cmp edx, ecx
mov dword [esp + 0x40], 4
jne 0x5148c2
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x51493b
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5148f8
mov ecx, dword [esp + 0x10]
fild dword [ecx + 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x44], eax
fidiv dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fcom qword [0x51bd80]
fnstsw ax
test ah, 5
jp 0x5148fd
fstp st(0)
push 4
pop edi
jmp 0x514950
fcom qword [0x51bb90]
fnstsw ax
test ah, 1
jne 0x51491d
fcom qword [0x51bd78]
fnstsw ax
test ah, 5
jp 0x51491d
fstp st(0)
push 3
jmp 0x5148fa
fcom qword [0x51bd78]
fnstsw ax
test ah, 1
jne 0x51493f
fld dword [0x51bd70]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x51493f
fstp st(0)
push 2
jmp 0x5148fa
fcomp dword [0x51bd70]
fnstsw ax
test ah, 1
je 0x51493b
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x50], 4
je 0x514965
mov eax, esi
call fcn.00517df4
test eax, eax
je 0x514968
push 2
pop edi
cmp dword [0x539750], edi
je 0x514996
cmp dword [ebx + 0x1c], 0
jne 0x514996
cmp dword [ebx + 0x18], 0
jne 0x514996
push edi
push 0xb
push 0x467
push dword [ebx + 0x90]
call dword [fcn.004f6470]
mov dword [0x539750], edi
xor esi, esi
cmp dword [ebx + 0x1c], 0
jne 0x5149c1
cmp dword [ebx + 0x18], 0
jne 0x5149b7
push 0x14
call dword [0x4f62a4]
inc esi
cmp esi, 0x64
jl 0x514998
jmp 0x5149b7
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x1c], 0
je 0x5144cb
push dword [esp + 0x10]
call 0x5b9b0d
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4