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

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
push ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, dword [esp + 0x88]
cmp eax, 1
push ebp
mov dword [esp + 0xc], ecx
setg bl
push esi
lea ecx, [eax*8]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x94]
mov ebp, edx
shl eax, 3
mov esi, 0x40
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 6
mov edx, dword [esp + 0x54]
lea edi, [esi + ebx]
xor esi, esi
sar edi, 1
mov dword [esp + 0x38], esi
cmp edx, ebp
jle 0x55b51b
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
sub ebx, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x5c]
shl edx, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], edx
add edx, dword [esp + 0x5c]
sub eax, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
lea esp, [esp]
mov eax, dword [ebx + edx - 4]
lea edx, [edx - 4]
imul eax, edi
sar eax, 6
add eax, dword [edx]
cmp eax, dword [edx + ebp]
jge 0x55b4f3
cmp dword [esp + 0x38], 0
jne 0x55b4f3
cmp eax, ecx
jl 0x55b50c
add esi, ecx
jmp 0x55b50c
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], 1
cmp eax, dword [ecx + edx]
cmovge eax, dword [ecx + edx]
mov ecx, dword [esp + 0x24]
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x55b4d0
mov ebp, dword [esp + 0x10]
mov eax, ebx
jmp 0x55b552
mov ebx, dword [esp + 0x5c]
lea eax, [edx*4]
mov edx, dword [esp + 0x64]
sub edx, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], edx
sub eax, ebx
mov edx, dword [esp + 0x1c]
sub edx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
sub edx, ebp
mov dword [esp + 0x2c], edx
cmp esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
cmovle ebx, edi
cmovle edi, dword [esp + 0x40]
sub dword [esp + 0x44], 1
mov esi, edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x40], esi
jne 0x55b474
mov ecx, dword [esp + 0x88]
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x54], ebp
jle 0x55b5f2
mov edx, dword [esp + 0x48]
mov edi, ecx
add edx, dword [esp + 0x5c]
sub edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov ecx, dword [edx + eax - 4]
lea edx, [edx - 4]
imul ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
sar ecx, 6
add ecx, dword [edx]
cmp ecx, dword [edx + eax]
jge 0x55b5cd
test esi, esi
jne 0x55b5cd
cmp ecx, ebp
mov dword [esp + 0x48], esi
mov eax, ebp
cmovl eax, esi
mov ecx, eax
jmp 0x55b5d2
mov esi, 1
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax]
cmp ecx, eax
cmovl eax, ecx
add ebx, eax
mov dword [edi + edx], eax
sub dword [esp + 0x2c], 1
mov eax, dword [esp + 0x30]
jne 0x55b5a0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov eax, ecx
dec ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x58]
jle 0x55b7a8
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], ecx
jmp 0x55b620
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
sub edi, ebx
mov ecx, dword [ecx + 0x20]
movsx eax, word [ecx + eax*2]
movsx edx, word [ecx + ebp*2]
mov esi, eax
mov dword [esp + 0x30], eax
sub esi, edx
mov dword [esp + 0x20], edx
mov eax, edi
cdq
idiv esi
mov ebp, dword [esp + 0x94]
mov edx, eax
mov eax, dword [esp + 0x2c]
imul esi, edx
movsx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov esi, dword [esp + 0x2c]
sub ecx, eax
add ecx, edi
mov edi, dword [esp + 0x30]
sub edi, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], edi
lea eax, [eax + esi*4]
mov dword [esp + 0x48], eax
xor eax, eax
test ecx, ecx
cmovle ecx, eax
mov eax, dword [esp + 0x64]
imul edi, edx
lea edx, [ebp*8 + 8]
mov ebp, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
add ecx, edi
mov edi, dword [esp + 0x48]
add ecx, dword [edi]
cmp eax, edx
mov dword [esp + 0x20], ecx
cmovle eax, edx
cmp ecx, eax
jl 0x55b753
cmp dword [esp + 0xa0], 0
je 0x55b71b
mov edi, dword [esp + 0x6c]
lea eax, [ebp + 2]
cmp edi, eax
jle 0x55b7f8
mov ecx, dword [esp + 0x98]
xor eax, eax
cmp esi, dword [esp + 0xa4]
setge al
lea eax, [eax*2 + 7]
imul eax, dword [esp + 0x30]
shl eax, cl
shl eax, 3
sar eax, 4
cmp dword [esp + 0x20], eax
jg 0x55b7f8
mov edi, dword [esp + 0x9c]
mov ecx, dword [edi + 0x1c]
mov eax, ecx
shr eax, 1
sub ecx, eax
mov dword [edi + 0x1c], ecx
mov ecx, edi
call fcn.0054cc80
jmp 0x55b745
mov edi, dword [esp + 0x9c]
mov ecx, dword [edi + 0x1c]
mov eax, ecx
mov edx, dword [edi + 0x20]
shr eax, 1
cmp edx, eax
jb 0x55b817
sub ecx, eax
sub edx, eax
mov dword [edi + 0x1c], ecx
mov ecx, edi
mov dword [edi + 0x20], edx
call fcn.00553c80
mov ecx, dword [esp + 0x20]
add ebx, 8
mov edi, dword [esp + 0x48]
sub ecx, 8
mov eax, dword [edi]
mov edx, dword [esp + 0x7c]
add eax, edx
sub ebx, eax
test edx, edx
jle 0x55b76e
sub esi, ebp
movzx edx, byte [esi + 0x5e4450]
mov dword [esp + 0x7c], edx
lea eax, [ebx + edx]
mov edx, dword [esp + 0x24]
cmp ecx, edx
lea ebx, [eax + edx]
cmovl ebx, eax
xor esi, esi
cmp ecx, edx
mov eax, edx
mov ecx, dword [esp + 0x44]
cmovl eax, esi
dec ecx
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x58]
jg 0x55b620
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jle 0x55b837
mov eax, edi
sub eax, ebp
inc eax
cmp dword [esp + 0xa0], 0
je 0x55b823
mov ecx, dword [esp + 0x78]
push eax
mov edx, dword [ecx]
cmp edx, edi
cmovge edx, edi
mov dword [ecx], edx
sub edx, ebp
mov ecx, esi
call fcn.0054ce90
mov eax, dword [esp + 0x7c]
add esp, 4
mov ecx, dword [eax]
jmp 0x55b843
mov esi, dword [esp + 0x9c]
mov eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 1
sub eax, ecx
mov dword [esi + 0x1c], ecx
add dword [esi + 0x20], eax
mov ecx, esi
call fcn.0054cc80
jmp 0x55b7bf
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.00553c80
jmp 0x55b7b4
mov edx, eax
mov ecx, esi
call fcn.00553e70
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x78]
mov dword [eax], ecx
jmp 0x55b843
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [eax], 0
mov eax, dword [esp + 0x18]
cmp ecx, ebp
mov edx, dword [esp + 0x84]
lea esi, [eax + edx]
cmovg esi, eax
xor eax, eax
cmp ecx, ebp
cmovg eax, edx
test eax, eax
jle 0x55b908
cmp dword [esp + 0xa0], 0
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + 0x1c]
je 0x55b8ae
mov edi, dword [esp + 0x80]
mov eax, edx
shr eax, 1
sub edx, eax
cmp dword [edi], 0
mov edi, dword [esp + 0x6c]
je 0x55b892
add dword [ecx + 0x20], edx
mov ebp, dword [esp + 0x80]
cmp dword [ebp], 0
cmovne edx, eax
mov dword [ecx + 0x1c], edx
call fcn.0054cc80
mov ebp, dword [esp + 0x10]
jmp 0x55b915
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x58], eax
mov eax, edx
shr eax, 1
cmp dword [esp + 0x58], eax
mov dword [esp + 0x7c], eax
sbb edi, edi
neg edi
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x6c]
cmp dword [esp + 0x58], eax
jb 0x55b8e5
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x7c]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x7c]
sub edx, eax
cmp dword [esp + 0x58], eax
cmovae eax, edx
mov dword [ecx + 0x1c], eax
call fcn.00553c80
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [ecx], eax
jmp 0x55b915
mov eax, dword [esp + 0x80]
mov dword [eax], 0
mov eax, dword [esp + 0x14]
sub esi, ebx
mov eax, dword [eax + 0x20]
movsx ecx, word [eax + edi*2]
movsx eax, word [eax + ebp*2]
sub ecx, eax
mov eax, esi
cdq
idiv ecx
mov edx, ebp
mov ebx, eax
imul ecx, ebx
sub esi, ecx
mov dword [esp + 0x58], esi
cmp ebp, edi
jge 0x55bbc7
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x14]
lea ecx, [ecx]
mov eax, dword [esi + 0x20]
movsx ecx, word [eax + edx*2 + 2]
movsx eax, word [eax + edx*2]
sub ecx, eax
imul ecx, ebx
add dword [ebp + edx*4], ecx
inc edx
cmp edx, edi
jl 0x55b950
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
movsx ecx, word [eax + edx*2 + 2]
movsx eax, word [eax + edx*2]
sub ecx, eax
mov eax, esi
cmp esi, ecx
cmovge eax, ecx
add dword [ebp + edx*4], eax
sub esi, eax
inc edx
cmp edx, edi
jl 0x55b972
mov eax, dword [esp + 0x88]
xor esi, esi
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x10]
sub ecx, eax
sub dword [esp + 0x1c], eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x90]
sub ecx, eax
mov dword [esp + 0x48], esi
lea ebx, [eax + ebp*4]
mov dword [esp + 0x58], ecx
jmp 0x55b9d0
mov eax, dword [esp + 0x14]
lea ecx, [ebp*2]
mov edx, dword [ebx]
mov dword [esp + 0x84], ecx
add edx, esi
mov eax, dword [eax + 0x20]
movsx ebp, word [eax + ecx + 2]
movsx eax, word [eax + ecx]
mov ecx, dword [esp + 0x98]
sub ebp, eax
shl ebp, cl
mov dword [esp + 0x44], ebp
cmp ebp, 1
jle 0x55bb3c
mov eax, dword [esp + 0x1c]
mov edi, edx
mov esi, dword [esp + 0x94]
sub edi, dword [eax + ebx]
xor eax, eax
test edi, edi
cmovle edi, eax
sub edx, edi
mov dword [ebx], edx
cmp esi, 2
jne 0x55ba4b
cmp ebp, esi
jle 0x55ba4b
mov eax, dword [esp + 0x80]
cmp dword [eax], 0
jne 0x55ba4b
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x55ba4b
lea eax, [esi - 1]
jmp 0x55ba4d
xor eax, eax
mov ecx, dword [esp + 0x84]
imul ebp, esi
add ebp, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
movsx ecx, word [eax + ecx]
add ecx, dword [esp + 0x4c]
imul ecx, ebp
imul eax, ebp, 0x15
mov esi, ecx
sar esi, 1
sub esi, eax
cmp dword [esp + 0x44], 2
lea eax, [ebp*8]
mov dword [esp + 0x40], eax
jne 0x55ba8b
sar eax, 2
add esi, eax
lea eax, [edx + esi]
mov dword [esp + 0x84], eax
mov eax, ebp
shl eax, 4
cmp dword [esp + 0x84], eax
jge 0x55baa8
sar ecx, 2
jmp 0x55bac0
lea eax, [ebp*2]
add eax, ebp
shl eax, 3
cmp dword [esp + 0x84], eax
jge 0x55bac2
sar ecx, 3
add esi, ecx
lea eax, [edx + ebp*4]
add eax, esi
lea ecx, [ebp*8]
cdq
xor ebp, ebp
idiv ecx
mov edx, dword [esp + 0x7c]
test eax, eax
cmovns ebp, eax
mov ecx, ebp
mov dword [edx + ebx], ebp
imul ecx, dword [esp + 0x94]
mov eax, dword [ebx]
sar eax, 3
cmp ecx, eax
jle 0x55bb00
mov ebp, dword [ebx]
mov ecx, dword [esp + 0x34]
sar ebp, cl
sar ebp, 3
mov dword [edx + ebx], ebp
mov edx, 8
cmp ebp, edx
cmovl edx, ebp
mov ebp, dword [esp + 0x7c]
add ebp, ebx
xor ecx, ecx
mov dword [ebp], edx
imul edx, dword [esp + 0x40]
mov eax, dword [ebx]
add eax, esi
cmp edx, eax
mov eax, dword [esp + 0x58]
setge cl
mov dword [eax + ebx], ecx
mov eax, dword [ebp]
imul eax, dword [esp + 0x94]
shl eax, 3
sub dword [ebx], eax
jmp 0x55bb67
mov ecx, dword [esp + 0x7c]
mov eax, edx
sub eax, dword [esp + 0x24]
mov edi, 0
cmovns edi, eax
mov eax, dword [esp + 0x58]
sub edx, edi
lea ebp, [ecx + ebx]
mov dword [ebx], edx
mov dword [ecx + ebx], 0
mov dword [eax + ebx], 1
test edi, edi
jle 0x55bba7
mov ecx, dword [esp + 0x34]
mov esi, edi
mov eax, 8
sub eax, dword [ebp]
lea ecx, [ecx + 3]
sar esi, cl
cmp esi, eax
cmovge esi, eax
mov eax, edi
add dword [ebp], esi
xor ecx, ecx
imul esi, dword [esp + 0x94]
sub eax, dword [esp + 0x48]
shl esi, 3
cmp esi, eax
mov eax, dword [esp + 0x58]
setge cl
sub edi, esi
mov dword [eax + ebx], ecx
mov ebp, dword [esp + 0x10]
mov esi, edi
inc ebp
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x6c]
add ebx, 4
mov dword [esp + 0x10], ebp
cmp ebp, edi
jl 0x55b9d0
jmp 0x55bbc9
xor esi, esi
mov eax, dword [esp + 0x70]
mov dword [eax], esi
cmp ebp, dword [esp + 0x54]
jge 0x55bc38
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x90]
sub ebx, eax
mov edi, dword [esp + 0x54]
sub esi, eax
lea edx, [eax + ebp*4]
sub edi, ebp
jmp 0x55bc00
mov eax, dword [ebx + edx]
lea edx, [edx + 4]
mov ecx, dword [esp + 0x34]
sar eax, cl
xor ecx, ecx
sar eax, 3
mov dword [edx - 4], eax
mov dword [ebx + edx - 4], 0
cmp dword [edx - 4], 1
setl cl
mov dword [esi + edx - 4], ecx
sub edi, 1
jne 0x55bc00
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret