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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [ecx + 0xc]
mov edx, dword [esi + 4]
push 0x5185e0
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0xac], edx
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x44], edi
call fcn.00518b50
mov eax, dword [edi + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.0053f9f0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esi + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x10]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
jle 0x5039c5
mov dword [esp + 0x14], eax
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x14]
call fcn.00525d20
cmp dword [esi + 8], eax
je 0x5039a2
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esi]
push eax
call dword [edx + 0x34]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
mov edi, eax
mov eax, dword [esi]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, dword [esp + 0x18]
shl eax, 5
add eax, ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
cmp dword [ecx + eax*4 + 0x18c], 0x510f30
jne 0x50398a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
and edx, 0x7fffffff
cmp eax, edx
jne 0x503932
lea eax, [esp + 0x20]
push 0x30
push eax
call fcn.0054d2c0
mov eax, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2 - 3]
shl eax, 4
mov dword [eax + edx + 0x20], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + edx + 0x24], edi
mov edx, dword [esi]
mov esi, dword [esp + 0x20]
mov dword [eax + esi + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [eax + edx + 0xc], 0x7f7fffff
mov edx, dword [esp + 0x20]
lea esi, [eax + edx]
push esi
add ecx, 0x10
push ecx
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00510fd0
add esp, 0x14
mov dword [esi + 0x2c], eax
jmp 0x5039a2
mov eax, dword [ebp + 0x14]
mov esi, dword [esi + 8]
mov edx, dword [esi]
push eax
mov eax, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x10]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jl 0x5038a3
mov edi, dword [esp + 0x24]
xor edx, edx
test edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edx
jle 0x503ddd
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x5039f0
mov edx, dword [esp + 0x14]
jmp 0x5039f0
mov eax, dword [esp + 0x20]
fld dword [ecx + eax + 0xc]
add ecx, eax
mov eax, edi
sub eax, edx
cmp eax, 4
mov ebx, edx
jl 0x503a5d
lea esi, [ecx + 0x3c]
fcom dword [esi - 0x30]
fnstsw ax
test ah, 0x41
jne 0x503a19
fstp st(0)
mov ebx, edx
fld dword [esi - 0x30]
fcom dword [esi]
fnstsw ax
test ah, 0x41
jne 0x503a29
fstp st(0)
lea ebx, [edx + 1]
fld dword [esi]
fcom dword [esi + 0x30]
fnstsw ax
test ah, 0x41
jne 0x503a3b
fstp st(0)
lea ebx, [edx + 2]
fld dword [esi + 0x30]
fcom dword [esi + 0x60]
fnstsw ax
test ah, 0x41
jne 0x503a4d
fstp st(0)
lea ebx, [edx + 3]
fld dword [esi + 0x60]
add edx, 4
lea eax, [edi - 3]
add esi, 0xc0
cmp edx, eax
jl 0x503a08
cmp edx, edi
jge 0x503a87
mov esi, dword [esp + 0x20]
lea eax, [edx + edx*2]
shl eax, 4
lea esi, [eax + esi + 0xc]
nop
fcom dword [esi]
fnstsw ax
test ah, 0x41
jne 0x503a7f
fstp st(0)
mov ebx, edx
fld dword [esi]
inc edx
add esi, 0x30
cmp edx, edi
jl 0x503a70
mov esi, dword [esp + 0x20]
fstp st(0)
lea eax, [ebx + ebx*2]
shl eax, 4
mov edx, dword [eax + esi + 8]
fld dword [eax + esi]
mov ebx, dword [eax + esi + 0x28]
fld dword [eax + esi + 4]
add eax, esi
fxch st(1)
mov esi, dword [eax + 0x24]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xd8], ebx
mov ebx, dword [eax + 0x2c]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xdc], ebx
mov ebx, dword [ecx]
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 0x1c]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0xc], ebx
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0xcc], edx
mov edx, dword [eax + 0x20]
mov dword [eax + 0x10], ebx
mov ebx, dword [ecx + 0x14]
mov dword [eax + 0x14], ebx
mov ebx, dword [ecx + 0x18]
mov dword [eax + 0x18], ebx
mov ebx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], ebx
mov ebx, dword [ecx + 0x20]
mov dword [eax + 0x20], ebx
mov ebx, dword [ecx + 0x24]
mov dword [eax + 0x24], ebx
mov ebx, dword [ecx + 0x28]
mov dword [eax + 0x28], ebx
mov ebx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], ebx
fstp dword [ecx]
mov eax, dword [esp + 0xb8]
mov dword [ecx + 8], eax
fstp dword [ecx + 4]
mov eax, dword [esp + 0xbc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0xc4]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0xc8]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0xcc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0xdc]
mov dword [ecx + 0x20], edx
mov edx, dword [esp + 0xd8]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x24], esi
mov dword [ecx + 0x28], edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc eax
cmp eax, edi
lea ebx, [ecx + edx]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], eax
jge 0x503dca
lea esi, [edi + edi*2]
add ecx, 0x30
shl esi, 4
mov dword [esp + 0x18], esi
jmp 0x503bd0
mov eax, dword [esp + 0x20]
cmp dword [eax + ecx + 0x2c], 2
lea edx, [eax + ecx + 0x2c]
jne 0x503db1
fld dword [eax + ecx + 0xc]
fcomp dword [0x64528c]
fnstsw ax
test ah, 5
jnp 0x503db1
mov eax, dword [esp + 0x20]
fld dword [eax + ecx]
fsub dword [ebx]
fld dword [eax + ecx + 4]
fsub dword [ebx + 4]
fld dword [eax + ecx + 8]
mov eax, dword [ebp + 0x10]
fsub dword [ebx + 8]
mov eax, dword [eax + 0xc]
fmul dword [ebx + 0x18]
fxch st(1)
fmul dword [ebx + 0x14]
faddp st(1)
fxch st(1)
fmul dword [ebx + 0x10]
faddp st(1)
fcomp dword [eax + 0xc]
fnstsw ax
test ah, 0x41
jp 0x503db1
mov dword [edx], 0
mov edx, dword [esp + 0x20]
lea eax, [esi + edx - 0x30]
fld dword [edx + ecx]
mov ebx, dword [edx + ecx + 0x10]
fld dword [edx + ecx + 4]
lea esi, [edx + ecx + 8]
fxch st(1)
mov dword [esp + 0x60], esi
mov esi, dword [esi]
mov dword [esp + 0x78], esi
lea esi, [edx + ecx + 0xc]
mov dword [esp + 0x6c], esi
mov esi, dword [esi]
mov dword [esp + 0x80], ebx
mov ebx, dword [edx + ecx + 0x14]
mov dword [esp + 0x7c], esi
lea esi, [edx + ecx + 0x10]
mov dword [esp + 0x84], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x88], ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x8c], ebx
lea ebx, [edx + ecx + 0x20]
mov dword [esp + 0x68], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x90], ebx
lea ebx, [edx + ecx + 0x24]
mov dword [esp + 0x50], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x94], ebx
lea ebx, [edx + ecx + 0x28]
lea edi, [edx + ecx + 4]
mov dword [esp + 0x5c], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x98], ebx
lea ebx, [edx + ecx + 0x2c]
mov dword [esp + 0x64], ebx
mov ebx, dword [ebx]
mov dword [esp + 0x9c], ebx
mov ebx, dword [eax]
mov dword [edx + ecx], ebx
mov edx, dword [eax + 4]
mov dword [edi], edx
mov edx, dword [eax + 8]
mov edi, dword [esp + 0x60]
mov dword [edi], edx
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x6c]
mov dword [edi], edx
mov edx, dword [eax + 0x10]
mov dword [esi], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 4], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 8], edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x20]
mov esi, dword [esp + 0x68]
mov dword [esi], edx
mov edx, dword [eax + 0x24]
mov esi, dword [esp + 0x50]
mov dword [esi], edx
mov edx, dword [eax + 0x28]
mov esi, dword [esp + 0x5c]
mov dword [esi], edx
mov edx, dword [eax + 0x2c]
mov esi, dword [esp + 0x64]
mov dword [esi], edx
fstp dword [eax]
mov edx, dword [esp + 0x78]
mov dword [eax + 8], edx
fstp dword [eax + 4]
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x98]
dec edi
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x9c]
sub esi, 0x30
mov dword [eax + 0x2c], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], esi
jmp 0x503db8
inc dword [esp + 0x14]
add ecx, 0x30
cmp dword [esp + 0x14], edi
jl 0x503bd0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
add ecx, 0x30
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jl 0x5039e3
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x503f36
nop
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + eax + 0x2c]
test ecx, ecx
je 0x503ef3
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
and ecx, 0x7fffffff
cmp eax, ecx
jne 0x503e20
push 0x30
push ebx
call fcn.0054d2c0
add esp, 8
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [eax + eax*2]
shl esi, 4
add esi, ecx
inc eax
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + edx]
lea eax, [edi + edx]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + eax + 0x20]
cmp word [ecx + 0xc], 0xffff
jne 0x503ed5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], edx
mov eax, dword [edi + eax + 0x28]
mov edx, dword [ecx]
lea ebx, [esp + 0xe0]
push ebx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
lea ebx, [edi + ecx]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 8]
mov edx, dword [ebp + 0x10]
push esi
push edx
lea edx, [esp + 0x48]
push edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebx + 0x20]
mov word [ecx + 0xc], ax
mov eax, dword [esp + 0x20]
mov edx, dword [edi + eax + 0x20]
mov ax, word [edx + 0xc]
cmp ax, 0xffff
je 0x503ee9
mov word [esi + 0x20], ax
jmp 0x503f1e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
dec dword [eax + 4]
jmp 0x503f1e
mov ecx, dword [edi + eax + 0x20]
xor eax, eax
mov ax, word [ecx + 0xc]
cmp ax, 0xffff
je 0x503f1e
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + eax + 0x20]
mov word [ecx + 0xc], 0xffff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
add edi, 0x30
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x503df0
mov eax, dword [esp + 0x30]
mov ecx, dword [0x9617f0]
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0xf
and eax, 0xfffffff0
je 0x503f66
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x2c]
cmp esi, edx
je 0x503f5d
test edx, edx
jne 0x503f66
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x503f76
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x28]
test eax, eax
js 0x503f9c
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
lea eax, [eax + eax*2]
push 0x12
shl eax, 4
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [edx + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10