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

Disassembly:
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xc4]
push ebp
mov ebp, dword [ebx + 0x14]
mov al, byte [ebp + 0x510]
test al, al
je 0x50182d
pop ebp
mov byte [ebx + 8], 0
xor al, al
pop ebx
add esp, 0xb8
ret 8
mov al, byte [ebx + 8]
test al, al
mov ecx, ebp
je 0x501869
cmp dword [ebx + 4], 0xbb8
jae 0x50185b
mov edx, dword [ebp]
push 1
call dword [edx + 0x58]
mov ecx, eax
call fcn.00518490
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
mov al, byte [ebp + 0x494]
test al, al
je 0x501885
mov byte [ebx + 8], 0
mov eax, dword [ebp]
push 1
call dword [eax + 0x58]
mov ecx, eax
call fcn.00518490
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
mov edx, dword [ebp]
call dword [edx + 0x7c]
test al, al
jne 0x5018ad
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 0x58]
mov ecx, eax
call fcn.00518490
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
push esi
mov esi, dword [ebx + 0x20]
mov edx, dword [esi]
push edi
mov ecx, esi
mov dword [esp + 0xac], esi
call dword [edx + 4]
cmp dword [esi + 0x10], eax
jl 0x5018ec
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 0x58]
mov ecx, eax
call fcn.00518490
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x190]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0x30]
push ecx
xor esi, esi
push eax
mov dword [esp + 0x38], esi
call fcn.004100d0
cmp dword [esp + 0x24], esi
je 0x501940
mov dword [ebx + 4], esi
mov ebx, dword [ebx + 0x14]
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x58]
mov ecx, eax
call fcn.00518490
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
mov eax, dword [ebp]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [eax + 0x40]
lea edx, [ebp + 0x118]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
lea ecx, [ebp + 0x98]
lea edx, [esp + 0x94]
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x190]
cmp byte [ecx + 0x348], 0
mov eax, dword [ecx + 0x20]
mov edi, dword [eax + 0x60]
mov edx, dword [eax + 0x68]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
jne 0x501cc6
cmp dword [eax + 0x50], 4
je 0x501cc6
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x18]
cmp ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0x42800000
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
jbe 0x501afb
jmp 0x5019d6
mov eax, dword [esp + 0x18]
xor esi, esi
mov edx, dword [esp + 0x1c]
call fcn.004bcba0
mov ecx, dword [esp + 0x14]
push ecx
push esi
lea edi, [esp + 0xc4]
lea ebx, [esp + 0x74]
mov esi, eax
mov dword [esp + 0x80], eax
call fcn.004c03e0
mov edx, dword [esp + 0x14]
push edx
push 0x3f800000
lea edi, [esp + 0xc4]
lea ebx, [esp + 0x50]
call fcn.004c03e0
lea edx, [esp + 0x54]
lea eax, [esp + 0x3c]
lea esi, [esp + 0x48]
lea ecx, [esp + 0x6c]
call fcn.004baed0
fstp st(0)
fld dword [esp + 0x3c]
lea ecx, [esp + 0x7c]
fsub dword [esp + 0x54]
fstp dword [esp + 0x7c]
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
fstp dword [esp + 0x80]
fld dword [esp + 0x44]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x84]
call fcn.0040e360
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x501ad5
mov eax, dword [esp + 0x78]
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
jmp 0x501ad7
fstp st(0)
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x5019d0
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x501b1f
mov ebx, dword [esp + 0xd0]
mov ecx, dword [ebx + 0x14]
mov byte [ebx + 8], 0
mov edx, dword [ecx]
push 1
call dword [edx + 0x58]
mov ecx, eax
call fcn.00518490
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xb8
ret 8
lea eax, [esp + 0x7c]
mov ecx, esi
mov dword [esp + 0x28], esi
call fcn.004c0600
fld dword [esp + 0x7c]
fmul dword [esp + 0x94]
fld dword [esp + 0x84]
fmul dword [esp + 0x9c]
faddp st(1)
fld dword [esp + 0x80]
fmul dword [esp + 0x98]
faddp st(1)
fcomp dword [0x61801c]
fnstsw ax
test ah, 5
jnp 0x501e4c
mov ebx, dword [esp + 0x14]
mov edi, dword [esi + 0x2c]
mov eax, ebx
mov dword [esp + 0x2c], edi
call fcn.004c0630
fstp dword [esp + 0x1c]
lea esi, [esp + 0xb0]
lea edx, [esp + 0x88]
lea ecx, [esp + 0x30]
call fcn.004bb000
fld dword [0x617e60]
fdiv dword [esp + 0x1c]
faddp st(1)
fst dword [esp + 0x14]
fcomp dword [0x617dbc]
fnstsw ax
test ah, 0x41
jne 0x501c0e
mov ecx, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x20], ecx
lea ecx, [ecx]
cmp edi, dword [esp + 0x20]
jae 0x501ca8
mov eax, dword [esp + 0x18]
inc edi
mov edx, edi
call fcn.004bcba0
mov esi, eax
mov eax, ebx
mov dword [esp + 0x28], esi
call fcn.004c0630
fld dword [esp + 0x14]
fsub dword [0x617dbc]
fdiv st(1)
fmul dword [esp + 0x1c]
fst dword [esp + 0x14]
fxch st(1)
fstp dword [esp + 0x1c]
fcomp dword [0x617dbc]
fnstsw ax
test ah, 0x41
je 0x501bc0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
push ebx
push eax
lea edi, [esp + 0x50]
lea ebx, [esp + 0x5c]
call fcn.004c03e0
push 0x3a83126f
push 0x3f800000
lea ecx, [esp + 0x50]
call fcn.0040e360
push ecx
fstp dword [esp]
call fcn.0040e380
add esp, 0xc
test al, al
jne 0x501c53
lea ecx, [esp + 0x48]
call fcn.00405430
fstp st(0)
fld dword [esp + 0x60]
fmul dword [esp + 0x48]
fld dword [esp + 0x68]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x4c]
faddp st(1)
fcomp dword [0x617db0]
fnstsw ax
test ah, 5
jnp 0x501cac
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
call fcn.0040fb40
mov eax, dword [edi + 0x50]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 5
mov ecx, dword [ebp + 0x190]
mov dword [ecx + 0x10], edx
jmp 0x501ed4
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax + 0x14]
mov byte [eax + 8], 0
mov edx, dword [ecx]
push 1
call dword [edx + 0x58]
jmp 0x5018d6
fld dword [esp + 0x9c]
fmul dword [0x617db0]
fld dword [esp + 0x94]
fmul dword [0x617db0]
faddp st(1)
fadd dword [esp + 0x98]
fcomp dword [0x61801c]
fnstsw ax
test ah, 5
jp 0x501cff
mov byte [ebx + 8], 0
jmp 0x5018cc
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.004e9280
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov eax, dword [edx]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4 - 0xc]
mov dword [esp + 0x90], edx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x6c]
lea eax, [esp + 0x3c]
lea esi, [esp + 0x30]
lea ecx, [esp + 0x88]
call fcn.004baed0
fstp st(0)
fld dword [esp + 0x3c]
lea ecx, [esp + 0x30]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x30]
fld dword [esp + 0x40]
fsub dword [esp + 0x70]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x74]
fstp dword [esp + 0x38]
call fcn.0040e360
fcomp dword [0x6078a0]
fnstsw ax
test ah, 0x41
jne 0x501db9
mov ecx, dword [ebx + 0x14]
mov byte [ebx + 8], 0
mov edx, dword [ecx]
push 1
call dword [edx + 0x58]
jmp 0x5018d6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x68]
push eax
push 0
lea edi, [esp + 0x50]
lea ebx, [esp + 0x5c]
call fcn.004c03e0
fld dword [esp + 0x3c]
fsub dword [esp + 0x54]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x38]
call fcn.0040e360
fcomp dword [0x6180c0]
fnstsw ax
test ah, 5
jnp 0x501cac
fld dword [esp + 0x6c]
lea ecx, [esp + 0x30]
fsub dword [esp + 0x54]
fstp dword [esp + 0x30]
fld dword [esp + 0x70]
fsub dword [esp + 0x58]
fstp dword [esp + 0x34]
fld dword [esp + 0x74]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x38]
call fcn.0040e360
fcomp dword [0x6180c0]
fnstsw ax
test ah, 5
jp 0x501e5f
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax + 0x14]
mov byte [eax + 8], 0
jmp 0x5018cf
push 0x3a83126f
push 0x3f800000
lea ecx, [esp + 0x50]
call fcn.0040e360
push ecx
fstp dword [esp]
call fcn.0040e380
add esp, 0xc
test al, al
jne 0x501e8d
lea ecx, [esp + 0x48]
call fcn.00405430
fstp st(0)
fld dword [esp + 0x60]
fmul dword [esp + 0x48]
fld dword [esp + 0x68]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x4c]
faddp st(1)
fcomp dword [0x617db0]
fnstsw ax
test ah, 5
jnp 0x501cac
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x50]
mov ecx, 4
cmp edx, ecx
jne 0x501ed4
mov dword [eax + 0x54], ecx
mov dword [eax + 0x50], 5
mov eax, ebp
call fcn.004e9e20
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 0xac], edx
push ecx
lea edx, [esp + 0x1b]
push edx
mov byte [esp + 0x1f], 0
call fcn.004b4310
push eax
lea edi, [esp + 0xb0]
call fcn.004b5a30
mov al, byte [esp + 0x13]
test al, al
je 0x501f41
fld dword [esp + 0xa4]
fadd dword [esp + 0x18]
jmp 0x501f45
fld dword [esp + 0x40]
fsub dword [esp + 0x18]
push 0x3a83126f
push 0x3f800000
lea ecx, [esp + 0x68]
fstp dword [esp + 0x48]
call fcn.0040e360
push ecx
fstp dword [esp]
call fcn.0040e380
add esp, 0xc
test al, al
jne 0x501f7b
lea ecx, [esp + 0x60]
call fcn.00405430
fstp st(0)
mov ebx, dword [ebp + 0x190]
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x40]
call fcn.004e90b0
mov edi, 1
mov esi, ebp
mov dword [ebp + 0xa4], 2
call fcn.004e9a00
mov eax, dword [ebp + 0x190]
mov eax, dword [eax + 0x20]
or byte [eax + 0x40], 1
mov ecx, dword [ebp + 0x190]
mov ecx, dword [ecx + 0x20]
push 0
call fcn.0040fef0
mov edx, dword [ebp + 0x190]
push edx
lea esi, [esp + 0x40]
call fcn.004e78d0
mov edi, dword [ebp + 0x190]
lea ecx, [esp + 0x60]
call fcn.004e7980
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov esi, dword [esp + 0xd0]
mov dword [edx + ecx*4], esi
mov ecx, dword [eax + 0x10]
pop edi
pop esi
inc ecx
pop ebp
mov dword [eax + 0x10], ecx
mov al, 1
pop ebx
add esp, 0xb8
ret 8