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

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x64]
push esi
mov esi, ecx
test ebx, ebx
jne 0x503819
pop esi
xor al, al
pop ebx
add esp, 0x5c
ret 0x14
mov eax, dword [0x7fcf98]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0x3b]
test al, al
jne 0x503833
mov ecx, dword [0x7fcfa8]
mov dword [esp + 0xc], ecx
fld dword [0x7fcfbc]
fmul dword [0x7d74e4]
push ebp
push edi
fst dword [esp + 0x70]
fld dword [0x7fcfbc]
fmul dword [0x7cdfdc]
fstp dword [esp + 0x18]
fild dword [esp + 0x80]
fmul dword [esp + 0x70]
call fcn.0078c320
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x78]
fild dword [esp + 0x10]
mov edx, dword [ebp]
mov dword [esp + 0x30], edx
fadd dword [esi + 0x1c]
fadd st(1)
fstp dword [esp + 0x2c]
fstp st(0)
fld dword [esi + 0x24]
fld dword [esi + 0x18b8]
fadd dword [ebp]
fst dword [esp + 0x24]
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fsub dword [esp + 0x70]
call fcn.0078c320
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x5c]
fld dword [esp + 0x38]
fadd dword [esp + 0x30]
fmul dword [0x7cd778]
fld st(0)
fld dword [esp + 0x70]
fmul dword [0x7cd778]
fstp dword [esp + 0x10]
fsub dword [esp + 0x10]
call fcn.0078c320
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x60]
fld dword [esp + 0x5c]
fadd dword [esp + 0x70]
call fcn.0078c320
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x64]
fld dword [esp + 0x10]
fadd st(1)
call fcn.0078c320
fstp st(0)
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x68]
fld dword [esp + 0x2c]
fadd dword [esp + 0x70]
mov eax, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x18c0]
mov ecx, edx
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fadd dword [esp + 0x18]
mov edx, dword [edi]
mov dword [esp + 0x48], ecx
cmp edx, eax
fstp dword [esp + 0x3c]
fstp dword [esp + 0x44]
jl 0x503b61
fld dword [esp + 0x24]
fcomp dword [esi + 0x28]
fnstsw ax
test ah, 0x41
je 0x503b61
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x5039d3
fld dword [esp + 0x38]
fsub dword [esp + 0x30]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 0x3f800000
fmul dword [0x7cd778]
fld dword [esp + 0x34]
fsub dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esi + 0x748]
fstp dword [esp + 0x2c]
fadd dword [esp + 0x40]
fst dword [esp + 0x30]
fld dword [esp + 0x3c]
fstp dword [esp + 0x34]
fstp dword [esp + 0x38]
call fcn.00534470
mov eax, dword [ebx + 0x2c]
test eax, eax
jg 0x5039e5
mov al, byte [ebx + 0x35]
test al, al
je 0x503a7f
mov eax, dword [0x8301a4]
mov ecx, dword [0x8301a8]
mov edx, dword [0x8301ac]
mov dword [esp + 0x30], eax
mov al, byte [ebx + 0x34]
mov dword [esp + 0x34], ecx
fld dword [0x8301a0]
test al, al
mov dword [esp + 0x38], edx
je 0x503a34
mov eax, dword [0x830194]
mov ecx, dword [0x830198]
mov edx, dword [0x83019c]
mov dword [esp + 0x30], eax
fstp st(0)
fld dword [0x830190]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
fmul dword [0x7d8ec4]
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esi + 0xcfc]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul dword [0x7d8ec4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [0x7d8ec4]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fmul dword [0x7d8ec4]
fstp dword [esp + 0x44]
call fcn.00533d50
mov ecx, dword [esi + 0x187c]
mov eax, dword [ebx + 0x10]
cmp ecx, ebx
jne 0x503a8f
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x503aa9
cmp byte [eax], 0
je 0x503aa9
lea edx, [esp + 0x4c]
push eax
push edx
lea ecx, [esi + 0x1880]
call fcn.00510420
mov al, byte [esi + 0x3b]
mov edx, dword [ebx + 0xc]
push 1
push eax
push 0
push 1
lea ecx, [esp + 0x4c]
lea ebp, [esi + 0x608]
push 1
push ecx
push ebp
push edx
call fcn.004e8940
mov eax, dword [ebx + 0xc]
add esp, 0x20
mov ecx, ebp
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0052ef00
fld dword [eax]
fadd dword [esp + 0x3c]
cmp dword [esi + 0x187c], ebx
fadd dword [esp + 0x18]
fstp dword [esp + 0x44]
jne 0x503b51
mov al, byte [esi + 0x38]
test al, al
je 0x503b37
fld dword [esp + 0x44]
fsub dword [0x7cd794]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x54]
push eax
fstp dword [esp + 0x38]
fld dword [esp + 0x4c]
fsub dword [0x7cd794]
push ecx
mov dword [esp + 0x38], edx
fstp dword [esp + 0x40]
call fcn.004e8ec0
add esp, 8
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push 0x3f800000
push eax
lea ecx, [esi + 0x748]
call fcn.00534ac0
mov eax, dword [esp + 0x78]
fld dword [esi + 0x18b8]
fadd dword [eax]
mov ebp, eax
fstp dword [eax]
mov eax, dword [edi]
mov byte [esp + 0x70], 1
inc eax
mov dword [edi], eax
mov ecx, eax
fld dword [esi + 0x18b8]
fadd dword [ebp]
fcomp dword [esi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x503b85
mov byte [esp + 0x70], 0
mov al, byte [ebx + 0x34]
test al, al
je 0x503cf7
mov eax, dword [esi + 0x18c0]
mov edx, dword [ebp]
cmp ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jg 0x503ba9
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2c]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x24], eax
jle 0x503cf7
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
jmp 0x503bcf
mov edi, dword [esp + 0x7c]
mov ecx, dword [ebx + 0x20]
mov edx, dword [esp + 0x80]
mov edi, dword [edi]
push edx
mov eax, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push ecx
push eax
mov ecx, esi
inc edi
call fcn.00503800
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x503bcb
mov edx, dword [esp + 0x18]
cmp edi, edx
je 0x503cf7
mov eax, dword [esi + 0x18c0]
cmp edi, eax
jl 0x503cf7
mov ecx, dword [esi + 0x18bc]
mov dword [esp + 0x80], ecx
add ecx, eax
cmp edx, ecx
jg 0x503cf7
sub edi, edx
mov dword [esp + 0x78], edi
fild dword [esp + 0x78]
fmul dword [esi + 0x18b8]
fadd dword [esp + 0x10]
fild dword [esp + 0x80]
fmul dword [esi + 0x18b8]
fadd dword [esi + 0x20]
fstp dword [esp + 0x78]
fcom dword [esp + 0x78]
fnstsw ax
test ah, 1
jne 0x503c71
fstp st(0)
fld dword [esp + 0x78]
fld dword [esi + 0x20]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x503c87
fstp dword [esp + 0x10]
jmp 0x503c89
fstp st(0)
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x503cf5
fld dword [esp + 0x54]
fadd dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
push eax
fmul dword [0x7cd778]
fst dword [esp + 0x20]
fstp dword [esp + 0x28]
fld dword [esi + 0x18b8]
fmul dword [0x7cd778]
lea ecx, [esp + 0x28]
push 0x3f800000
lea edx, [esp + 0x24]
push ecx
fsubr st(1)
push edx
lea ecx, [esi + 0x748]
fstp dword [esp + 0x38]
fstp st(0)
call fcn.00534470
mov al, byte [esp + 0x70]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x5c
ret 0x14
fstp st(0)
mov al, byte [esp + 0x70]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x5c
ret 0x14