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

Disassembly:
sub esp, 0xb70
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x24]
cmp eax, 1
push esi
jne 0x55a6de
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x55a69d
call fcn.0055d81c
mov ecx, dword [esp + 0xb8c]
fld qword [esp + 0xb7c]
mov edx, dword [esp + 0xb88]
mov esi, dword [ebp]
push eax
mov eax, dword [esp + 0xb94]
push eax
mov eax, dword [esp + 0xb8c]
push ecx
push edx
push eax
call fcn.00632d5c
push eax
mov ecx, ebp
call dword [esi + 0x14]
pop esi
pop ebp
add esp, 0xb70
ret 0x20
cmp eax, 2
jne 0x55af1c
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ebx
push edi
mov edi, dword [ecx + 0x30]
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
mov dword [esp + 0x40], edi
call dword [edx + 0x24]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x55af1a
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x55a720
call fcn.0055d81c
mov edx, dword [esp + 0x94]
mov esi, eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0x7fffffff
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xb8], al
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0xa4]
call fcn.005d42bc
test byte [ebx + 0x38], 4
movzx ecx, word [ebx + 0x36]
je 0x55a799
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx*2]
jmp 0x55a7a2
mov eax, dword [esp + 0x9c]
add eax, ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xb94]
add eax, 6
mov dword [esp + 0x9c], eax
add eax, edx
mov edx, dword [esp + 0xb90]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
push edx
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x34], eax
je 0x55af1a
cmp esi, 8
mov dword [esp + 0x2c], 0
jl 0x55a802
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test al, al
je 0x55a802
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
mov dword [esp + 0x2c], eax
cmp esi, 8
mov dword [esp + 0x38], 0
jl 0x55a832
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
test eax, eax
je 0x55a832
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.0055f4ac
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
add eax, 0x4c
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
push 0x28
mov dword [esp + 0x98], edx
call fcn.00576eac
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
add eax, 0xf0
push eax
call fcn.00575aec
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
add esp, 0x14
test eax, eax
jne 0x55a899
call fcn.0055d81c
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x20]
cmp esi, 7
jl 0x55a8b2
test byte [ebx + 0x38], 0x20
mov byte [esp + 0x13], 1
jne 0x55a8b7
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0057611c
fld qword [esp + 0xb8c]
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x55a95e
call fcn.00632d5c
mov ecx, eax
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x55a912
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x58], eax
jmp 0x55a91c
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xb8c]
mov eax, ecx
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x55a952
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
shl edx, 2
mov dword [esp + 0x5c], edx
jmp 0x55a972
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
jmp 0x55a972
call fcn.00632d5c
mov ecx, dword [esp + 0xb8c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp byte [ebx + 0x7e], 0x4b
mov esi, 0x400
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x44800000
jne 0x55a99a
mov esi, 0x5000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x46a00000
mov eax, dword [ebp + 4]
test eax, eax
je 0x55a9f1
mov eax, dword [eax + 0x38]
test eax, eax
je 0x55a9f1
mov ecx, eax
call fcn.005eca3c
test al, al
je 0x55a9f1
cmp dword [esp + 0x60], 1
je 0x55a9c7
lea edx, [esp + 0x48]
push edx
call fcn.0057551c
add esp, 4
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x55a9d5
neg eax
fld dword [0x5f6864]
mov dword [esp + 0x14], eax
fdiv dword [esp + 0x1c]
fimul dword [esp + 0x14]
fst dword [esp + 0x54]
fstp dword [esp + 0x48]
jmp 0x55aa30
cmp dword [esp + 0x60], 1
jne 0x55aa05
lea ecx, [esp + 0x48]
push ecx
call fcn.0057555c
add esp, 4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x55aa13
neg eax
mov ecx, eax
mov eax, 0x10000
cdq
idiv esi
mov dword [esp + 0x60], 0
imul eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0xb9c]
mov edi, dword [esp + 0xb98]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x44], esi
je 0x55ab10
mov eax, dword [ebx + 4]
push eax
call fcn.005aa2fc
add esp, 4
test al, al
je 0x55ab10
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x210]
test eax, eax
jne 0x55aa78
call fcn.005d85cc
cmp eax, 8
jl 0x55ab10
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
call fcn.005c618c
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x55ab10
mov eax, dword [esp + 0x24]
push eax
call fcn.005aa65c
mov esi, eax
mov eax, dword [ebp + 4]
lea ecx, [eax + 0x2ec]
mov dword [esp + 0x24], edi
mov eax, dword [ecx]
add esp, 4
test eax, eax
mov dword [esp + 0x44], esi
je 0x55aacd
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.005a373c
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x23]
cmp al, 0xff
je 0x55ab10
movzx ecx, byte [esp + 0x20]
movzx eax, al
inc eax
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
shr edx, 8
movzx edx, dl
imul edx, eax
sar edx, 8
mov byte [esp + 0x21], dl
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x22], cl
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x55ab1e
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x540]
mov ebx, dword [edx]
mov ecx, dword [esp + 0xb94]
xor eax, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x55acdc
test ecx, ecx
fld qword [esp + 0xb84]
fstp dword [esp + 0x3c]
mov dword [esp + 0x28], eax
fild dword [esp + 0xb8c]
fstp dword [esp + 0x40]
jle 0x55af0d
mov edi, dword [esp + 0xb90]
mov ebx, dword [esp + 0xb9c]
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov si, word [ecx + eax*2]
cmp si, 0xffff
je 0x55acc0
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x50]
xor edx, edx
mov dx, word [edi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xbb0]
push esi
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.005abbac
mov ecx, dword [esp + 0x64]
movzx eax, si
lea eax, [ecx + eax*2]
xor edx, edx
mov dh, byte [eax + 1]
movzx eax, byte [eax]
or edx, eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
je 0x55ac24
movzx eax, word [edi]
movzx edx, word [edi + 6]
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
mov ecx, dword [esp + 0x30]
or edx, eax
push edx
mov dword [esp + 0x20], 0
call fcn.005780bc
test eax, eax
je 0x55ac24
movsx ecx, word [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x55ac32
neg eax
test ebx, ebx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
fidiv dword [esp + 0x30]
fstp dword [esp + 0x14]
je 0x55acac
mov ecx, dword [ebx + 4]
call fcn.005ccadc
mov ecx, eax
call fcn.005aae7c
cmp eax, 1
jne 0x55acac
cmp word [edi], 0x20
je 0x55acac
lea eax, [ebx + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
fld dword [esp + 0x70]
fdiv dword [esp + 0x68]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
fmul dword [esp + 0x14]
fld dword [esp + 0x78]
fmul dword [0x5f7a78]
faddp st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fadd dword [esp + 0x14]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0xb94]
inc eax
add edi, 6
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x55ab7c
jmp 0x55af0d
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x55af0d
mov ecx, dword [esp + 0xb90]
mov dword [esp + 0x1c], ecx
jmp 0x55acfc
mov edx, dword [esp + 0x34]
mov di, word [edx + eax*2]
cmp di, 0xffff
je 0x55aeee
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x68]
push eax
add ecx, 0xf0
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00575d0c
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x55ad76
cmp ebx, 1
jle 0x55ad76
mov esi, dword [esp + 0x78]
mov eax, esi
cdq
idiv ebx
mov ecx, ebx
sar ecx, 1
cmp edx, ecx
jl 0x55ad4f
lea eax, [ecx + esi]
cdq
idiv ebx
mov esi, dword [esp + 0x7c]
imul eax, ebx
mov dword [esp + 0x78], eax
mov eax, esi
cdq
idiv dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x55ad6f
lea eax, [ecx + esi]
cdq
idiv ebx
imul eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x38], 8
mov ecx, eax
mov edx, dword [ecx + 0x70]
movzx esi, di
je 0x55ada6
lea eax, [edx + esi*4]
movzx edx, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 2]
movzx eax, byte [eax]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
jmp 0x55adb2
lea eax, [edx + esi*2]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
mov edx, dword [ecx + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0xcc]
call fcn.0055933c
mov eax, dword [esp + 0x134]
mov dword [esp + 0xb7c], edi
mov dword [esp + 0xb78], 1
mov dword [eax], 0
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0xb98]
mov dword [ecx], 0
mov edx, dword [esp + 0x138]
add edi, 0x50
push edi
push eax
mov ecx, ebp
mov word [edx + 4], 0
call fcn.0055a54c
mov ecx, dword [esp + 0x134]
push 0
lea edx, [esp + 0x88]
mov dword [ecx + 4], eax
push edx
push 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x13c], 1
call fcn.005c679c
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov ch, byte [eax + esi*2 + 1]
mov cl, byte [eax + esi*2]
mov esi, ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x55ae92
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
movzx edx, word [eax]
movzx eax, word [eax + 6]
shl edx, 0x10
or edx, eax
push edx
mov dword [esp + 0x30], 0
call fcn.005780bc
test eax, eax
je 0x55ae92
movsx ecx, word [esp + 0x28]
add esi, ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x55aea0
neg eax
imul eax, esi
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x13]
add eax, edx
test cl, cl
je 0x55aeda
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x58]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x58], edx
jmp 0x55aede
add dword [esp + 0x58], eax
lea ecx, [esp + 0xbc]
call fcn.005d4a2c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb94]
inc eax
add edx, 6
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x55acfc
mov eax, dword [esp + 0x34]
push eax
call fcn.007152ac
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb70
ret 0x20