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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0x400
push edi
mov ecx, dword [esi + 0xb0]
mov eax, ecx
and eax, ebp
jne 0x55871b
test ch, 2
jne 0x55871b
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push 1
call fcn.00554910
mov ecx, eax
call fcn.004318d0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
xor ebx, ebx
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.00554910
mov ecx, eax
call fcn.004318d0
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esi + 0xc4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x7c]
cmp edi, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
je 0x5585f7
cmp dword [esi + 0xc8], ebx
je 0x5585eb
mov edx, dword [edi + 0x1c]
push ecx
mov eax, dword [edx + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x2c]
fld dword [eax + 4]
fsub dword [esp + 0x30]
fld dword [eax + 8]
fsub dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
mov eax, dword [esi + 0xc4]
fstp dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esp + 0x28]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
mov edx, dword [esi + 0xc8]
fstp dword [esp + 0x44]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x2c]
fld dword [eax + 4]
fsub dword [esp + 0x30]
fld dword [eax + 8]
fsub dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
mov ecx, dword [esi + 0xc8]
fstp dword [esp + 0x48]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esp + 0x28]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fcomp dword [esp + 0x44]
add esp, 4
fnstsw ax
test ah, 0x41
jp 0x55850e
mov cl, 1
jmp 0x558510
xor cl, cl
fld dword [esp + 0x44]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jp 0x558523
mov al, 1
jmp 0x558525
xor al, al
cmp cl, al
jne 0x55855a
cmp cl, 1
jne 0x558545
fld dword [esp + 0x14]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jp 0x558541
mov al, cl
jmp 0x55855c
xor al, al
jmp 0x55855c
fld dword [esp + 0x40]
fcomp dword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x558541
mov al, 1
jmp 0x55855c
mov al, cl
mov edi, dword [esi + 0xb0]
or edi, 0x200
mov edx, edi
mov dword [esi + 0xb0], edi
or edx, ebp
cmp al, 1
mov dword [esi + 0xb0], edx
mov eax, dword [esi + 0xc4]
jne 0x558596
mov ecx, dword [esi + 0xc8]
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ecx
jmp 0x5585a8
mov edx, dword [esi + 0xc8]
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], edx
push 1
push ebx
lea ecx, [esp + 0x50]
push ebx
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0xc0]
push edx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
call fcn.004f81d0
push 1
push ebx
lea eax, [esp + 0x3c]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi + 0xbc]
call fcn.004f81d0
jmp 0x5588d9
cmp edi, ebx
je 0x5585f7
mov dword [esi + 0xc4], ebx
jmp 0x55860b
mov edi, dword [esi + 0xc8]
cmp edi, ebx
je 0x5588d9
mov dword [esi + 0xc8], ebx
cmp edi, ebx
je 0x5588d9
mov edx, dword [edi + 0x1c]
push ecx
mov eax, dword [edx + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x2c]
fld dword [eax + 4]
fsub dword [esp + 0x30]
fld dword [eax + 8]
fsub dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
mov eax, dword [edi + 0x1c]
fstp dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esp + 0x28]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
fcomp dword [esp + 0x1c]
mov ecx, dword [esi + 0xb0]
add esp, 4
fnstsw ax
and eax, 0x100
jne 0x5586e1
or ecx, ebp
mov eax, ecx
mov dword [esi + 0xb0], ecx
test eax, 0x20000
je 0x5586c1
and al, 0xfd
mov dword [esi + 0xb0], eax
push 1
push ebx
lea ecx, [esp + 0x50]
push ebx
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov dword [esi + 0xc0], edi
call fcn.004f81d0
jmp 0x5588d9
or ch, 2
mov eax, ecx
mov dword [esi + 0xb0], ecx
test eax, 0x20000
je 0x5586fb
and al, 0xfb
mov dword [esi + 0xb0], eax
push 1
push ebx
lea eax, [esp + 0x3c]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, edi
mov dword [esi + 0xbc], edi
call fcn.004f81d0
jmp 0x5588d9
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], edi
mov ecx, esi
jne 0x558732
lea edx, [esp + 0x54]
push edx
push 1
jmp 0x558738
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.00554910
mov ecx, eax
call fcn.004318d0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
cmp ecx, ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
je 0x558871
cmp dword [esi + 0xc8], ebx
je 0x558865
mov ecx, dword [ecx + 0x1c]
push ecx
mov eax, dword [ecx + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x88]
fld dword [eax + 4]
fsub dword [esp + 0x8c]
fld dword [eax + 8]
fsub dword [esp + 0x90]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
mov edx, dword [esi + 0xc8]
fstp dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 4]
add eax, 0x80
fld dword [eax]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esp + 0x28]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.00404020
fcomp dword [esp + 0x1c]
add esp, 4
fnstsw ax
and eax, 0x100
jne 0x55884d
mov edi, dword [esi + 0xc8]
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x14], edi
mov dword [esi + 0xc4], ebx
jmp 0x55887b
mov edi, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc8]
mov dword [esp + 0x14], edi
mov dword [esi + 0xc4], ebx
jmp 0x55887b
cmp ecx, ebx
je 0x558871
mov dword [esi + 0xc4], ebx
jmp 0x558881
mov ecx, dword [esi + 0xc8]
cmp ecx, ebx
je 0x5588d9
mov dword [esi + 0xc8], ebx
cmp ecx, ebx
je 0x5588c9
mov eax, dword [esi + 0xb0]
push 1
lea edx, [esp + 0x38]
push ebx
test ebp, eax
push ebx
lea eax, [esp + 0x28]
push edx
push eax
jne 0x5588a5
mov dword [esi + 0xc0], ecx
jmp 0x5588ab
mov dword [esi + 0xbc], ecx
call fcn.004f81d0
mov ecx, dword [esi + 0xb0]
or ecx, ebp
mov eax, ecx
mov dword [esi + 0xb0], ecx
or ah, 2
mov dword [esi + 0xb0], eax
cmp edi, ebx
je 0x5588d9
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00555990
cmp dword [esp + 0x98], ebx
je 0x558982
cmp byte [esp + 0x9c], bl
je 0x558982
lea edx, [esi + 0xbc]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
cmp edi, ebx
je 0x55896c
mov ecx, edi
call fcn.004f72b0
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x13]
and eax, 0xff
push ecx
push edx
mov ecx, edi
mov ebp, eax
mov byte [esp + 0x1b], bl
call fcn.004f8310
cmp byte [esp + 0x13], bl
je 0x558940
add ebp, 6
jmp 0x558943
add ebp, 3
mov ecx, dword [esi + 0x2c4]
push ebp
call fcn.0049b100
test al, al
jne 0x55896a
mov ecx, edi
call fcn.004f7900
cmp al, 1
jne 0x55896a
mov ecx, dword [esi + 0x2c4]
push ebp
call fcn.0049b0a0
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x558905
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 8