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

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], esi
cmp dword [esi + 0xb4], 0
je 0x552b04
cmp dword [esi + 0xd4], 0
je 0x552af3
lea ecx, [esi + 0xd8]
call fcn.0054b260
test eax, eax
jne 0x552ee3
mov ecx, dword [esi]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0xb4], 0
cmp dword [esi + 0xac], 0
je 0x552b1a
mov eax, dword [esi + 0xd0]
pop esi
add esp, 0x30
ret 4
mov ecx, esi
call fcn.00550430
test eax, eax
jne 0x552ee3
push ebx
push edi
mov edi, dword [esi + 0xb8]
mov eax, edi
or eax, dword [esi + 0xbc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
jne 0x552bd2
mov ecx, dword [esi]
mov eax, dword [esi + 8]
call eax
mov ecx, esi
test eax, eax
jne 0x552b64
mov edx, edi
call fcn.00550b20
pop edi
pop ebx
pop esi
add esp, 0x30
ret 4
lea edx, [esp + 0x34]
call fcn.00554350
movzx edx, word [esi + 0x1eb0]
lea ebx, [esi + 0x58]
mov edi, dword [ebx]
mov ecx, edx
shr edi, 0xb
mov eax, 0x800
sub eax, ecx
imul edi, ecx
shr eax, 5
add eax, edx
mov dword [esp + 0x20], ebx
mov word [esi + 0x1eb0], ax
cmp edi, 0x1000000
jae 0x552baa
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov dword [ebx], edi
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
call eax
sub eax, dword [esi + 0x34]
mov ecx, ebx
mov edx, dword [esi + 0x50]
movzx eax, byte [eax]
push eax
call fcn.00552510
mov edi, dword [esp + 0x18]
dec dword [esi + 0x34]
inc edi
mov dword [esp + 0x18], edi
jmp 0x552bd9
lea ebx, [esi + 0x58]
mov dword [esp + 0x20], ebx
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ebp
call eax
test eax, eax
je 0x552ebd
nop dword [eax]
cmp dword [esi + 0xa4], 0
je 0x552c06
mov ecx, esi
call fcn.00551e30
mov dword [esp + 0x18], eax
jmp 0x552c40
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], ecx
jne 0x552c1d
mov edx, edi
mov ecx, esi
call fcn.00550b70
mov dword [esp + 0x18], eax
jmp 0x552c40
mov eax, ecx
shl eax, 5
mov edx, dword [eax + esi + 0xbcc0]
mov eax, dword [eax + esi + 0xbcc4]
mov dword [esi + 0x90], eax
lea eax, [ecx + 1]
mov dword [esp + 0x18], edx
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x2c]
and ecx, edi
mov edi, dword [ebx]
mov ebp, dword [esi + 0x90]
mov dword [esp + 0x14], ecx
add ecx, 0xf58
shl eax, 4
add eax, ecx
mov ecx, edi
shr ecx, 0xb
lea eax, [esi + eax*2]
mov dword [esp + 0x20], eax
movzx eax, word [eax]
movzx edx, ax
mov dword [esp + 0x30], eax
imul ecx, edx
movzx eax, ax
mov dword [esp + 0x2c], eax
cmp ebp, 0xffffffff
jne 0x552eea
mov eax, 0x800
sub eax, edx
mov edx, dword [esp + 0x20]
shr eax, 5
add eax, dword [esp + 0x30]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x552cb7
shl ecx, 8
mov dword [esp + 0x30], ecx
mov ecx, ebx
call fcn.005542b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov dword [ebx], ecx
mov ecx, dword [esi]
call eax
mov ecx, dword [esp + 0x1c]
mov ebp, eax
sub ebp, dword [esi + 0x34]
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x2c]
shl ecx, 8
movzx edx, byte [ebp - 1]
add edx, ecx
mov ecx, dword [esi + 0x94]
and edx, dword [esi + 0x48]
shl edx, cl
lea ecx, [edx + edx*2]
lea edx, [eax + ecx*2]
movzx eax, byte [edi + 0x58e180]
mov cl, byte [ebp]
mov dword [esi + 0x2c], eax
movzx eax, cl
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
cmp edi, 7
jae 0x552d13
push eax
mov ecx, ebx
call fcn.00552510
jmp 0x552de2
sub ebp, dword [esi + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
movzx edi, byte [ebp]
mov ebp, 0x100
mov edx, dword [esi]
or ebx, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebp
add edi, edi
shr edx, 0xb
mov eax, ebx
mov dword [esp + 0x2c], edi
shr eax, 8
mov ecx, ebp
and ecx, edi
add ecx, ebp
add eax, ecx
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + eax*2]
mov ecx, ebx
add ebx, ebx
shr ecx, 7
mov dword [esp + 0x10], ebx
and ecx, 1
xor ebx, edi
mov eax, ecx
not ebx
neg eax
and dword [esp + 0x20], ebx
movzx ebx, word [ebp]
and dword [esp + 0x14], eax
mov edi, ebx
imul edx, edi
and eax, edx
sub dword [esp + 0x14], eax
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
dec ecx
mov eax, ecx
and ecx, 0x7e1
sub ecx, edi
and eax, edx
mov edx, dword [esp + 0x14]
add ecx, 0x1f
sar ecx, 5
add edx, eax
add ecx, ebx
mov dword [esp + 0x14], edx
mov word [ebp], cx
cmp edx, 0x1000000
jae 0x552dc1
shl edx, 8
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.005542b0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
cmp ebx, 0x10000
jb 0x552d33
mov esi, dword [esp + 0x28]
lea ebx, [esi + 0x58]
mov dword [ebx], edx
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
add edi, ebp
sub dword [esi + 0x34], ebp
mov dword [esp + 0x1c], edi
jne 0x552bf0
cmp dword [esi + 0xa4], 0
jne 0x552e76
cmp dword [esi + 0xc0], 0x40
lea edi, [esi + 0x760]
jb 0x552e3f
mov ecx, esi
call fcn.005504b0
mov ecx, esi
call fcn.005507f0
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x24b0]
push edi
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x34b0]
push eax
call fcn.00552390
cmp dword [esi + 0xc4], 0
jg 0x552e72
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x28b0]
push edi
mov edx, 1
mov dword [esi + 0xc4], 0x40
shl edx, cl
lea ecx, [esi + 0x78b4]
push eax
call fcn.00552390
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
call eax
test eax, eax
je 0x552ebd
mov ebp, dword [esp + 0x3c]
mov ecx, edi
sub ecx, dword [esp + 0x34]
test ebp, ebp
je 0x55366a
lea eax, [ecx + 0x92c]
cmp eax, dword [esp + 0x44]
jae 0x552ebd
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x68]
add ecx, dword [esi + 0x70]
add eax, 0x4000
add eax, ecx
cmp eax, ebp
jb 0x552bf0
mov ecx, edi
xor eax, eax
sub ecx, dword [esp + 0x34]
mov edx, edi
add dword [esi + 0xb8], ecx
mov ecx, esi
adc eax, dword [esi + 0xbc]
mov dword [esi + 0xbc], eax
call fcn.00550b20
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x30
ret 4
xor eax, eax
sub edi, ecx
add dword [esi + 0x60], ecx
adc eax, dword [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x2c]
shr edx, 5
sub eax, edx
mov edx, dword [esp + 0x20]
mov word [edx], ax
cmp edi, 0x1000000
jae 0x552f19
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0xf28
shr ecx, 0xb
movzx ebx, word [esi + eax*2]
lea eax, [esi + eax*2]
movzx edx, bx
mov dword [esp + 0x38], ebx
movzx ebx, bx
imul ecx, edx
mov dword [esp + 0x30], ebx
lea ebx, [esi + 0x58]
mov dword [esp + 0x2c], eax
cmp ebp, 4
jae 0x5531f4
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x30]
adc dword [esi + 0x64], 0
shr edx, 5
sub ecx, edx
mov edx, ebx
mov word [eax], cx
mov dword [esp + 0x20], edx
cmp edi, 0x1000000
jae 0x552f81
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov edx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 0x2c]
mov ecx, edi
add esi, 0x1e68
shr ecx, 0xb
lea eax, [esi + eax*2]
movzx esi, word [eax]
mov dword [esp + 0x10], eax
movzx eax, si
mov dword [esp + 0x2c], esi
movzx esi, si
imul ecx, eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
test ebp, ebp
jne 0x55306e
mov edx, dword [esp + 0x10]
mov eax, 0x800
sub eax, dword [esp + 0x30]
mov edi, ecx
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x552fe9
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov ebp, ebx
jmp 0x552fed
mov ebp, dword [esp + 0x20]
mov eax, dword [esi + 0x2c]
mov ecx, edi
shl eax, 4
add eax, 0x1018
shr ecx, 0xb
add eax, dword [esp + 0x14]
lea eax, [esi + eax*2]
mov dword [esp + 0x20], eax
movzx eax, word [eax]
movzx edx, ax
mov dword [esp + 0x2c], eax
imul ecx, edx
cmp dword [esp + 0x18], 1
movzx eax, ax
mov dword [esp + 0x30], eax
je 0x553045
xor eax, eax
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x20]
adc eax, dword [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x30]
shr edx, 5
sub eax, edx
mov word [ecx], ax
jmp 0x5531a6
mov eax, 0x800
mov edi, ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [ecx], ax
mov eax, dword [esi + 0x2c]
movzx eax, byte [eax + 0x58e1a4]
mov dword [esi + 0x2c], eax
jmp 0x5531a6
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x38]
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov word [eax], cx
cmp edi, 0x1000000
jae 0x5530a5
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0xf40
shr ecx, 0xb
lea eax, [esi + eax*2]
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov dword [esp + 0x20], eax
movzx eax, ax
imul ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x38], eax
cmp ebp, 1
jne 0x5530ff
mov ebp, dword [esp + 0x10]
mov eax, 0x800
sub eax, dword [esp + 0x2c]
mov edi, ecx
mov ecx, dword [esp + 0x30]
shr eax, 5
add eax, dword [esp + 0x20]
mov word [ecx], ax
mov ecx, dword [esi + 0x3c]
jmp 0x55319d
xor eax, eax
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x38]
adc eax, dword [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x2c]
shr eax, 5
sub ecx, eax
mov eax, dword [esp + 0x30]
mov word [eax], cx
cmp edi, 0x1000000
jae 0x553132
mov ecx, edx
shl edi, 8
call fcn.005542b0
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0xf4c
shr ecx, 0xb
lea eax, [esi + eax*2]
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov edx, eax
mov dword [esp + 0x38], eax
imul ecx, edx
cmp ebp, 2
jne 0x55316f
mov eax, 0x800
mov edi, ecx
sub eax, edx
mov edx, dword [esp + 0x30]
shr eax, 5
add word [edx], ax
mov ecx, dword [esi + 0x40]
jmp 0x553195
xor eax, eax
sub edi, ecx
add dword [esi + 0x60], ecx
adc eax, dword [esi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x38]
shr edx, 5
sub eax, edx
mov edx, dword [esp + 0x30]
mov word [edx], ax
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x3c]
mov ebp, ebx
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ecx
cmp edi, 0x1000000
jae 0x5531b8
mov ecx, ebx
shl edi, 8
call fcn.005542b0
mov eax, dword [esp + 0x18]
mov dword [ebx], edi
cmp eax, 1
je 0x552de2
push dword [esp + 0x14]
add eax, 0xfffffffe
lea ecx, [esi + 0x28b0]
push eax
mov edx, ebp
call fcn.00552130
mov eax, dword [esi + 0x2c]
dec dword [esi + 0xc4]
movzx eax, byte [eax + 0x58e198]
mov dword [esi + 0x2c], eax
jmp 0x552de2
mov eax, 0x800
sub eax, edx
mov edx, dword [esp + 0x2c]
shr eax, 5
add eax, dword [esp + 0x38]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x553223
shl ecx, 8
mov dword [esp + 0x38], ecx
mov ecx, ebx
call fcn.005542b0
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x2c]
mov edx, ebx
push dword [esp + 0x14]
mov dword [ebx], ecx
lea ecx, [esi + 0x24b0]
movzx eax, byte [eax + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
push eax
call fcn.00552130
mov eax, dword [esi + 0x40]
sub ebp, 4
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
lea eax, [ebp + 1]
mov dword [esi + 0x38], eax
mov eax, ebp
inc dword [esi + 0xc0]
mov dword [esp + 0x14], ebp
cmp ebp, 0x80
jae 0x553287
and eax, 0x7f
movzx edi, byte [eax + esi + 0x2cb0]
jmp 0x5532a2
cmp ebp, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2cb0]
lea edi, [eax + ecx*2]
mov edx, dword [ebx]
mov eax, 3
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], edi
add edi, 0x40
cmp ebx, 5
mov dword [esp + 0x10], edx
lea ecx, [ebx - 2]
cmovb eax, ecx
shl eax, 7
lea ecx, [eax + 0x21b0]
add ecx, esi
mov dword [esp + 0x2c], ecx
jmp 0x5532d6
mov edx, dword [esp + 0x10]
mov eax, edi
shr edx, 0xb
shr eax, 6
movzx ebx, word [ecx + eax*2]
lea ebp, [ecx + eax*2]
mov ecx, edi
add edi, edi
shr ecx, 5
and ecx, 1
mov dword [esp + 0x38], edi
mov eax, ecx
mov edi, ebx
imul edx, edi
neg eax
and dword [esp + 0x10], eax
and eax, edx
sub dword [esp + 0x10], eax
add dword [esi + 0x60], eax
adc dword [esi + 0x64], 0
dec ecx
mov eax, ecx
and ecx, 0x7e1
sub ecx, edi
and eax, edx
add dword [esp + 0x10], eax
add ecx, 0x1f
sar ecx, 5
add ecx, ebx
lea ebx, [esi + 0x58]
mov word [ebp], cx
mov ebp, dword [esp + 0x10]
cmp ebp, 0x1000000
jae 0x553347
shl ebp, 8
mov ecx, ebx
mov dword [esp + 0x10], ebp
call fcn.005542b0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
cmp edi, 0x1000
jb 0x5532d2
mov eax, dword [esp + 0x14]
mov dword [ebx], ebp
cmp eax, 4
jb 0x552de2
mov edi, dword [esp + 0x30]
mov edx, edi
shr edx, 1
dec edx
mov dword [esp + 0x10], edx
cmp eax, 0x80
jae 0x55342e
and edi, 1
mov ecx, edx
or edi, 2
shl edi, cl
add edi, 0x11d8
lea edx, [esi + edi*2]
mov edi, 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
movzx ebx, word [edx + edi*2]
mov ecx, eax
and ecx, 1
shr eax, 1
mov edx, ebp
mov dword [esp + 0x2c], ecx
neg ecx
shr edx, 0xb
and ebp, ecx
mov dword [esp + 0x14], eax
mov edi, ebx
imul edx, edi
and ecx, edx
sub ebp, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x2c]
adc dword [esi + 0x64], 0
dec ecx
mov eax, ecx
and ecx, 0x7e1
sub ecx, edi
and eax, edx
mov edi, dword [esp + 0x20]
add ecx, 0x1f
mov edx, dword [esp + 0x30]
add ebp, eax
sar ecx, 5
add ecx, ebx
lea ebx, [esi + 0x58]
mov word [edx + edi*2], cx
cmp ebp, 0x1000000
jae 0x55340e
mov ecx, ebx
shl ebp, 8
call fcn.005542b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add edi, edi
or edi, dword [esp + 0x2c]
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], edi
jne 0x5533a2
mov dword [ebx], ebp
jmp 0x552de2
mov ecx, 0x20
mov edi, eax
sub ecx, edx
or edi, 0xf
shl edi, cl
nop dword [eax]
mov eax, edi
shr ebp, 1
shr eax, 0x1f
neg eax
and eax, ebp
add dword [esi + 0x60], eax
adc dword [esi + 0x64], 0
add edi, edi
cmp ebp, 0x1000000
jae 0x553466
mov ecx, ebx
shl ebp, 8
call fcn.005542b0
cmp edi, 0xf0000000
jne 0x553440
movzx ebx, word [esi + 0x1e32]
mov edx, ebp
mov eax, dword [esp + 0x14]
mov edi, ebx
mov ecx, eax
shr edx, 0xb
and ecx, 1
imul edx, edi
mov dword [esp + 0x30], ecx
neg ecx
and ebp, ecx
shr eax, 1
mov dword [esp + 0x14], eax
xor eax, eax
and ecx, edx
sub ebp, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x30]
adc eax, dword [esi + 0x64]
dec ecx
mov dword [esi + 0x64], eax
mov eax, ecx
and ecx, 0x7e1
and eax, edx
sub ecx, edi
add ebp, eax
add ecx, 0x1f
sar ecx, 5
add ecx, ebx
mov word [esi + 0x1e32], cx
cmp ebp, 0x1000000
jae 0x5534da
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.005542b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add edx, 2
mov dword [esp + 0x38], edx
mov ecx, eax
and ecx, 1
shr eax, 1
mov dword [esp + 0x30], ecx
neg ecx
movzx ebx, word [esi + edx*2 + 0x1e30]
mov edx, ebp
and ebp, ecx
shr edx, 0xb
mov edi, ebx
mov dword [esp + 0x14], eax
imul edx, edi
xor eax, eax
and ecx, edx
sub ebp, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x30]
adc eax, dword [esi + 0x64]
dec ecx
mov dword [esi + 0x64], eax
mov eax, ecx
and ecx, 0x7e1
and eax, edx
sub ecx, edi
add ebp, eax
mov edi, dword [esp + 0x38]
add ecx, 0x1f
sar ecx, 5
add ecx, ebx
mov word [esi + edi*2 + 0x1e30], cx
cmp ebp, 0x1000000
jae 0x553557
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.005542b0
mov eax, dword [esp + 0x30]
lea edx, [eax + edi*2]
mov eax, dword [esp + 0x14]
movzx ebx, word [esi + edx*2 + 0x1e30]
mov ecx, eax
and ecx, 1
mov dword [esp + 0x38], edx
mov edx, ebp
mov dword [esp + 0x30], ecx
neg ecx
shr edx, 0xb
and ebp, ecx
shr eax, 1
mov edi, ebx
mov dword [esp + 0x14], eax
imul edx, edi
xor eax, eax
and ecx, edx
sub ebp, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x30]
adc eax, dword [esi + 0x64]
dec ecx
mov dword [esi + 0x64], eax
mov eax, ecx
and ecx, 0x7e1
and eax, edx
sub ecx, edi
add ebp, eax
mov edi, dword [esp + 0x38]
add ecx, 0x1f
sar ecx, 5
add ecx, ebx
mov dword [esp + 0x10], ebp
mov word [esi + edi*2 + 0x1e30], cx
cmp ebp, 0x1000000
jae 0x5535dc
shl ebp, 8
lea ecx, [esi + 0x58]
mov dword [esp + 0x10], ebp
call fcn.005542b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
and ecx, 1
mov dword [esp + 0x14], ecx
neg ecx
lea eax, [eax + edi*2]
movzx ebx, word [esi + eax*2 + 0x1e30]
lea ebp, [esi + eax*2]
mov eax, dword [esp + 0x10]
mov edi, ebx
mov edx, eax
and eax, ecx
shr edx, 0xb
imul edx, edi
and ecx, edx
sub eax, ecx
mov dword [esp + 0x10], eax
xor eax, eax
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x14]
adc eax, dword [esi + 0x64]
dec ecx
mov dword [esi + 0x64], eax
mov eax, ecx
and ecx, 0x7e1
and eax, edx
mov edx, dword [esp + 0x10]
sub ecx, edi
add ecx, 0x1f
add edx, eax
sar ecx, 5
add ecx, ebx
mov word [ebp + 0x1e30], cx
cmp edx, 0x1000000
jae 0x552ddd
shl edx, 8
lea ebx, [esi + 0x58]
mov ecx, ebx
mov dword [esp + 0x10], edx
call fcn.005542b0
mov edx, dword [esp + 0x10]
jmp 0x552de0
cmp ecx, 0x20000
jb 0x552bf0
xor eax, eax
add dword [esi + 0xb8], ecx
mov ecx, esi
adc eax, dword [esi + 0xbc]
mov dword [esi + 0xbc], eax
call fcn.00550430
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x30
ret 4