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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
mov al, byte [ebx + 4]
and al, 2
neg al
mov edx, dword [ebx + 0x28]
push esi
push edi
lea ecx, [ebx + 0x1c]
mov esi, ecx
lea edi, [ebp - 0x34]
sbb eax, eax
sub edx, dword [ebx + 0x20]
and eax, 3
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x8c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x24]
sub eax, dword [ecx]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14]
movsd dword es:[edi], dword [esi]
shr eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
movsd dword es:[edi], dword [esi]
shr eax, 2
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
je 0x55a443
push dword [ebx + 0x10]
mov esi, ecx
push dword [ebx + 0xc]
mov ecx, ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00559cb3
test eax, eax
jne 0x55a443
mov ecx, ebx
mov dword [ebp - 0x1c], 1
call fcn.0055a113
mov ecx, eax
test ecx, ecx
jl 0x55a541
mov edx, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x84]
mov eax, dword [ebx + 0x70]
sub edi, edx
mov dword [ebp - 0x10], edi
lea esi, [ebx + 0x78]
mov ecx, dword [esi]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x80]
movsd dword es:[edi], dword [esi]
sub eax, ecx
neg edx
push edx
movsd dword es:[edi], dword [esi]
neg ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
push ecx
lea eax, [ebp - 0x34]
push eax
movsd dword es:[edi], dword [esi]
call dword [0x398014bc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x50]
xor esi, esi
mov eax, edx
inc esi
shl esi, cl
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 4]
mov edi, edx
cdq
idiv esi
mov dword [ebp - 0x20], eax
xor eax, eax
test edx, edx
setne al
xor edx, edx
add eax, dword [ebp - 0x20]
test edi, edi
setne dl
add edx, ecx
cmp eax, edx
mov eax, dword [ebp - 4]
jg 0x55a35e
mov eax, dword [ebp - 0x10]
cdq
idiv esi
mov ecx, dword [ebx + 0x58]
push 8
pop edi
mov esi, eax
xor eax, eax
test edx, edx
mov edx, dword [ebx + 0x54]
setne al
imul edx, ecx
add eax, esi
add edx, eax
mov eax, dword [ebx + 0x60]
lea esi, [edx + edx - 2]
cdq
idiv edi
imul esi, eax
mov eax, dword [ebx + 0x5c]
imul eax, ecx
lea eax, [esi + eax*2]
imul eax, dword [ebp - 0x24]
push eax
mov dword [ebx + 0x88], eax
call fcn.005b5380
xor edx, edx
cmp eax, edx
mov dword [ebx + 0x6c], eax
mov ecx, 0x8007000e
je 0x55a541
cmp dword [0x39983830], edx
je 0x55a44c
test byte [ebx + 4], 2
je 0x55a43c
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x55a410
push 1
push dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00559c28
mov eax, dword [ebp - 0x14]
shl eax, 2
add esi, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jl 0x55a3e4
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
xor edi, edi
test eax, eax
jle 0x55a43c
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push esi
push esi
call fcn.00559c28
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc edi
add esi, 4
cmp edi, eax
jl 0x55a41f
emms
jmp 0x55a4d1
and dword [ebp - 0x1c], 0
jmp 0x55a327
test byte [ebx + 4], 2
je 0x55a53f
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
imul ecx, eax
add ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 8]
lea esi, [esi + ecx*4]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
test ecx, ecx
jle 0x55a4a5
shl eax, 2
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00559b9d
mov eax, dword [ebp - 0xc]
add esi, dword [ebp - 0x24]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jl 0x55a47e
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
xor edi, edi
test eax, eax
jle 0x55a4d1
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push esi
push esi
call fcn.00559b9d
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc edi
add esi, 4
cmp edi, eax
jl 0x55a4b4
test byte [ebx + 4], 2
je 0x55a53f
cmp dword [ebp - 0x1c], 0
je 0x55a53f
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
mov edi, ecx
sub edi, dword [ebx + 0x7c]
shl esi, 2
imul edi, esi
sub edx, eax
sub eax, dword [ebx + 0x78]
shl edx, 2
lea eax, [edi + eax*4]
add eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x90]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ecx
jmp 0x55a534
mov esi, eax
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x14]
add edi, dword [ebx + 0x18]
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
jl 0x55a510
xor ecx, ecx
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret