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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce12d
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
mov ebx, ecx
cmp byte [ebx + 0x27f0], 0
push esi
push edi
je 0x5123b9
cmp dword [ebx + 0x14], 0
mov ecx, dword [ebx + 4]
je 0x511b56
test ecx, ecx
je 0x511abf
mov eax, dword [ecx]
mov edx, dword [eax + 0x144]
call edx
test al, al
je 0x511b39
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0x138]
push eax
mov eax, 0x10001
lea edi, [esp + 0x5c]
call fcn.00408b00
add esp, 4
lea edi, [ebx + 4]
mov dword [esp + 0x84], 0
call fcn.00408860
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x511b2f
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x511b2f
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x511b2f
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
cmp dword [ebx + 4], 0
je 0x5123b9
fldz
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 0x14]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.004db0e0
jmp 0x511c52
test ecx, ecx
je 0x511c52
mov edx, dword [ecx]
mov eax, dword [edx + 0x144]
call eax
test al, al
je 0x511c52
cmp dword [ebx + 0x1d8], 0
jne 0x511bdd
mov ecx, dword [ebx + 0x134]
push ecx
mov ecx, dword [ebx + 0x138]
mov eax, 0x10001
lea edi, [esp + 0x5c]
call fcn.00408b00
add esp, 4
lea edi, [ebx + 4]
mov dword [esp + 0x84], 1
call fcn.00408860
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call fcn.004155f0
mov ecx, dword [edi]
test ecx, ecx
je 0x511c15
mov eax, dword [ebx + 0x1e4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
push 0x100
push 0
push eax
push 0
call edx
jmp 0x511c15
lea ecx, [ebx + 0x1c8]
xor al, al
lea edi, [esp + 0x60]
call fcn.0041d390
lea edi, [ebx + 4]
mov dword [esp + 0x84], 2
call fcn.00408860
lea ecx, [esp + 0x60]
mov dword [esp + 0x84], 0xffffffff
call fcn.004155f0
cmp dword [ebx + 4], 0
lea ecx, [ebx + 4]
je 0x5123b9
sub esp, 8
mov eax, esp
mov dword [esp + 0x60], esp
call fcn.004182f0
mov eax, dword [ebx + 0x1fc]
mov ecx, dword [ebx + 0x1f8]
mov edx, dword [ebx + 0x1f4]
push eax
mov eax, dword [ebx + 0x1f0]
push ecx
push edx
push eax
push ebx
call fcn.00510b40
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x3c]
push eax
mov esi, ebx
call fcn.0043b710
mov edx, dword [0x6a7c60]
mov eax, dword [edx + 0xc]
mov ecx, 0x6a7c60
call eax
mov ecx, dword [0x692f10]
mov ecx, dword [ecx + 0x98]
mov edx, dword [0x6a7d48]
add ecx, eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, 0x6a7d48
call eax
mov ecx, dword [0x692f10]
mov ecx, dword [ecx + 0x9c]
add ecx, eax
test byte [ebx + 0x1e8], 0xc0
mov dword [esp + 0x3c], ecx
je 0x511ccc
mov dword [esp + 0x38], 0x100
jmp 0x511cfd
mov edx, dword [0x6a7b78]
mov eax, dword [edx + 0xc]
mov ecx, 0x6a7b78
call eax
mov edx, dword [ebx + 0x928]
lea ecx, [ebx + 0x928]
mov esi, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, eax
mov eax, esi
shl eax, 8
cdq
idiv ecx
mov dword [esp + 0x38], eax
mov eax, ebx
call fcn.0043b540
mov dword [esp + 0x10], eax
mov eax, ebx
call fcn.0043b590
mov edx, dword [ebx + 0xd9c]
lea ecx, [ebx + 0xd9c]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x1000000
and eax, 0x8000ffff
jns 0x511d37
dec eax
or eax, 0xffff0000
inc eax
mov edx, dword [ebx + 0x1048]
lea ecx, [ebx + 0x1048]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x1000000
and eax, 0x8000ffff
jns 0x511d5f
dec eax
or eax, 0xffff0000
inc eax
mov edx, dword [ebx + 0x12f4]
lea ecx, [ebx + 0x12f4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x1000000
and eax, 0x8000ffff
jns 0x511d87
dec eax
or eax, 0xffff0000
inc eax
mov edx, dword [ebx + 0x1dbc]
lea ecx, [ebx + 0x1dbc]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebx + 0x1bf0], 4
lea esi, [eax + 1]
mov dword [esp + 0x2c], esi
jg 0x511dd6
mov edx, dword [ebx + 0x1bf4]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x1bf4]
call eax
test eax, eax
je 0x511dd6
mov edx, dword [ebx + 0x1cd8]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x1cd8]
call eax
test eax, eax
jne 0x511de2
mov dword [esp + 0x2c], 1
mov esi, dword [esp + 0x2c]
mov edx, dword [ebx + 0x15a0]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x15a0]
mov dword [esp + 0x18], 0
call eax
test eax, eax
jle 0x511e3f
mov eax, dword [ebx + 0x1768]
test eax, eax
jne 0x511e17
mov ecx, dword [ebx + 0x134]
cmp ecx, dword [0x6a49e4]
je 0x511e2a
cmp eax, 1
jne 0x511e3f
mov ecx, dword [ebx + 0x138]
cmp ecx, dword [0x6a49e8]
jne 0x511e3f
mov edx, dword [ebx + 0x15a0]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x15a0]
call eax
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x27ef], 0
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x68], ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
je 0x511f34
mov edx, dword [ebx + 0x26e4]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x26e4]
call eax
mov edx, dword [ebx + 0x2600]
lea ecx, [ebx + 0x2600]
mov esi, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [ebx + 0x251c]
lea ecx, [ebx + 0x251c]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [ebx + 0x2438]
lea ecx, [ebx + 0x2438]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebx + 0x160]
mov edx, dword [ebx + 0x15c]
add esi, ecx
add esi, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x44]
fild dword [esp + 0x48]
add esi, edx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
add esi, eax
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x34]
sub esp, 0x10
fstp dword [esp + 0xc]
add esi, ecx
fild dword [esp + 0x58]
add esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x40]
add ecx, edx
fstp dword [esp + 8]
mov dword [esp + 0x58], esi
fild dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x118]
mov dword [esp + 0x58], ecx
fstp dword [esp + 4]
fild dword [esp + 0x58]
mov ecx, edi
fstp dword [esp]
call edx
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x50]
jge 0x51237f
mov eax, dword [esp + 0x54]
mov ecx, eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x4c]
jge 0x512367
xor edx, edx
lea esp, [esp]
mov dword [esp + 0x14], edx
cmp esi, edx
jle 0x512353
lea esp, [esp]
mov eax, dword [ebx + 0x1bf0]
lea eax, [eax + eax*4]
shl eax, 4
cmp dword [eax + 0x6473e0], 0xfffffc19
mov dword [esp + 0x28], edx
je 0x51233b
mov esi, dword [ebx + 0x148]
or esi, dword [ebx + 0x1ec]
mov edx, dword [ebx + 0x2244]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx + 0x2244]
mov dword [esp + 0x58], esi
call eax
mov edx, dword [ebx + 0x2160]
lea ecx, [ebx + 0x2160]
test al, al
mov eax, dword [edx + 0xc]
jne 0x511fef
call eax
mov edx, dword [ebx + 0x2244]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x2244]
call eax
imul eax, dword [esp + 0x48]
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
jmp 0x511ff3
call eax
mov edi, eax
cmp dword [esp + 0x14], 0
jne 0x51200a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [ebp + 0xc], edx
jmp 0x51211a
mov edx, dword [ebx + 0x1bf4]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x1bf4]
call eax
mov edx, dword [ebx + 0x1bf4]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x1bf4]
call eax
mov edx, dword [ebx + 0x1dbc]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x1dbc]
call eax
mov ecx, eax
mov eax, dword [esp + 0x14]
dec eax
imul eax, dword [esp + 0x48]
cdq
idiv ecx
lea ecx, [ebx + 0x1cd8]
mov edx, eax
mov eax, dword [esp + 0x44]
sub eax, edx
imul eax, edi
cdq
and edx, 0xff
lea edi, [edx + eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
sar edi, 8
call edx
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x1dbc]
mov edx, dword [eax + 0xc]
lea ecx, [ebx + 0x1dbc]
call edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x1bf0]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x48]
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x44]
mov edx, eax
imul edx, dword [ecx*8 + 0x6473e0]
mov eax, dword [esp + 0x34]
sub eax, edx
lea ecx, [ebx + 0x1cd8]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x1dbc]
mov edx, dword [eax + 0xc]
lea ecx, [ebx + 0x1dbc]
call edx
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [ebx + 0x1bf0]
lea eax, [eax + eax*4]
lea esi, [edx + eax*2]
mov eax, dword [esp + 0x48]
imul eax, dword [esp + 0x14]
cdq
idiv ecx
mov edx, dword [ebp + 0xc]
mov ecx, eax
imul ecx, dword [esi*8 + 0x6473e4]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
sub eax, ecx
cmp dword [ebx + 4], 0
mov dword [ebp + 0x10], eax
je 0x5121d1
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x51219a
cmp dword [esp + 0x20], ecx
jne 0x51219a
cmp dword [esp + 0x1c], ecx
jne 0x51219a
mov ecx, dword [esp + 0x38]
cmp ecx, 0x100
jne 0x51216c
cmp dword [esp + 0x10], ecx
jne 0x51216c
cmp dword [esp + 0xc], ecx
jne 0x51216c
mov ecx, dword [esp + 0x18]
push edi
push esi
push ecx
push eax
push edx
mov edx, dword [ebp + 8]
push edx
mov esi, ebx
call fcn.0050af60
jmp 0x512308
push edi
push esi
mov esi, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push esi
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push eax
push edx
mov edx, dword [ebp + 8]
push edx
mov eax, ebx
call fcn.0050c8e0
jmp 0x512308
push edi
push esi
mov esi, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
push ecx
push eax
push edx
mov edx, dword [ebp + 8]
push edx
mov esi, ebx
call fcn.0050b2d0
jmp 0x512308
mov ecx, dword [ebx + 0x1a8]
test ecx, ecx
je 0x512216
fild dword [ebp + 0x10]
push edi
push esi
sub esp, 8
test byte [ebx + 0x1e8], 4
fstp dword [esp + 4]
fild dword [ebp + 0xc]
fstp dword [esp]
je 0x512206
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push edx
call eax
jmp 0x512308
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x34]
push eax
call edx
jmp 0x512308
cmp dword [ebx + 0xc], 0
je 0x512308
cmp dword [esp + 0x24], 0
jne 0x51227f
cmp dword [esp + 0x20], 0
jne 0x51227f
cmp dword [esp + 0x1c], 0
jne 0x51227f
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100
jne 0x512261
cmp dword [esp + 0xc], ecx
jne 0x512261
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
push edx
mov edx, dword [ebp + 8]
push edx
mov eax, edi
mov ecx, ebx
call fcn.005110a0
jmp 0x512308
push edi
mov edi, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x20]
push esi
push ecx
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov esi, ebx
call fcn.005115c0
jmp 0x512308
mov edx, dword [ebx + 0x27c8]
imul edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x27c8]
sar edx, 8
sub ecx, edx
mov edx, dword [ebx + 0x27cc]
imul edx, dword [esp + 0xc]
add ecx, dword [ebp + 0xc]
push edi
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x27cc]
sar edx, 8
sub ecx, edx
mov edx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x54]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebx + 0xc]
push ecx
sub esp, 8
test byte [ebx + 0x1e8], 4
fstp dword [esp + 4]
fild dword [esp + 0x6c]
fstp dword [esp]
push edx
push eax
mov eax, dword [ebx + 0x13c]
je 0x512303
call fcn.0056f440
jmp 0x512308
call fcn.0056f130
cmp dword [esp + 0x14], 0
je 0x512335
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1bf0]
inc ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x28], ecx
lea ecx, [ecx + eax*2]
cmp dword [ecx*8 + 0x6473e0], 0xfffffc19
jne 0x511f90
mov esi, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, esi
jl 0x511f70
mov ecx, dword [esp + 0x30]
mov edi, dword [ebp + 8]
add ecx, dword [ebx + 0x138]
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x4c]
jl 0x511f60
mov eax, dword [esp + 0x34]
add eax, dword [ebx + 0x134]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x50]
jl 0x511f46
cmp byte [ebx + 0x27ef], 0
je 0x5123b9
fld dword [esp + 0x74]
mov edx, dword [edi]
mov eax, dword [edx + 0x118]
sub esp, 0x10
fstp dword [esp + 0xc]
mov ecx, edi
fld dword [esp + 0x80]
fstp dword [esp + 8]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [esp + 0x78]
fstp dword [esp]
call eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc