Function at 0x5524d0
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 0x552514
cmp dword [esi + 0xd4], 0
je 0x552503
lea ecx, [esi + 0xd8]
call fcn.0054ac50
test eax, eax
jne 0x5528f3
mov ecx, dword [esi]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0xb4], 0
cmp dword [esi + 0xac], 0
je 0x55252a
mov eax, dword [esi + 0xd0]
pop esi
add esp, 0x30
ret 4
mov ecx, esi
call fcn.0054fe40
test eax, eax
jne 0x5528f3
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 0x5525e2
mov ecx, dword [esi]
mov eax, dword [esi + 8]
call eax
mov ecx, esi
test eax, eax
jne 0x552574
mov edx, edi
call fcn.00550530
pop edi
pop ebx
pop esi
add esp, 0x30
ret 4
lea edx, [esp + 0x34]
call fcn.00553cf0
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 0x5525ba
mov ecx, ebx
shl edi, 8
call fcn.00553c50
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.00551f20
mov edi, dword [esp + 0x18]
dec dword [esi + 0x34]
inc edi
mov dword [esp + 0x18], edi
jmp 0x5525e9
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 0x5528cd
nop dword [eax]
cmp dword [esi + 0xa4], 0
je 0x552616
mov ecx, esi
call fcn.00551840
mov dword [esp + 0x18], eax
jmp 0x552650
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], ecx
jne 0x55262d
mov edx, edi
mov ecx, esi
call fcn.00550580
mov dword [esp + 0x18], eax
jmp 0x552650
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 0x5528fa
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 0x5526c7
shl ecx, 8
mov dword [esp + 0x30], ecx
mov ecx, ebx
call fcn.00553c50
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 + 0x58d0c0]
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 0x552723
push eax
mov ecx, ebx
call fcn.00551f20
jmp 0x5527f2
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 0x5527d1
shl edx, 8
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.00553c50
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
cmp ebx, 0x10000
jb 0x552743
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 0x552600
cmp dword [esi + 0xa4], 0
jne 0x552886
cmp dword [esi + 0xc0], 0x40
lea edi, [esi + 0x760]
jb 0x55284f
mov ecx, esi
call fcn.0054fec0
mov ecx, esi
call fcn.00550200
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.00551da0
cmp dword [esi + 0xc4], 0
jg 0x552882
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.00551da0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
call eax
test eax, eax
je 0x5528cd
mov ebp, dword [esp + 0x3c]
mov ecx, edi
sub ecx, dword [esp + 0x34]
test ebp, ebp
je 0x55307a
lea eax, [ecx + 0x92c]
cmp eax, dword [esp + 0x44]
jae 0x5528cd
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 0x552600
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.00550530
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 0x552929
mov ecx, ebx
shl edi, 8
call fcn.00553c50
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 0x552c04
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 0x552991
mov ecx, ebx
shl edi, 8
call fcn.00553c50
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 0x552a7e
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 0x5529f9
mov ecx, ebx
shl edi, 8
call fcn.00553c50
mov ebp, ebx
jmp 0x5529fd
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 0x552a55
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 0x552bb6
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 + 0x58d0e4]
mov dword [esi + 0x2c], eax
jmp 0x552bb6
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 0x552ab5
mov ecx, ebx
shl edi, 8
call fcn.00553c50
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 0x552b0f
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 0x552bad
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 0x552b42
mov ecx, edx
shl edi, 8
call fcn.00553c50
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 0x552b7f
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 0x552ba5
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 0x552bc8
mov ecx, ebx
shl edi, 8
call fcn.00553c50
mov eax, dword [esp + 0x18]
mov dword [ebx], edi
cmp eax, 1
je 0x5527f2
push dword [esp + 0x14]
add eax, 0xfffffffe
lea ecx, [esi + 0x28b0]
push eax
mov edx, ebp
call fcn.00551b40
mov eax, dword [esi + 0x2c]
dec dword [esi + 0xc4]
movzx eax, byte [eax + 0x58d0d8]
mov dword [esi + 0x2c], eax
jmp 0x5527f2
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 0x552c33
shl ecx, 8
mov dword [esp + 0x38], ecx
mov ecx, ebx
call fcn.00553c50
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.00551b40
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 0x552c97
and eax, 0x7f
movzx edi, byte [eax + esi + 0x2cb0]
jmp 0x552cb2
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 0x552ce6
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 0x552d57
shl ebp, 8
mov ecx, ebx
mov dword [esp + 0x10], ebp
call fcn.00553c50
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
cmp edi, 0x1000
jb 0x552ce2
mov eax, dword [esp + 0x14]
mov dword [ebx], ebp
cmp eax, 4
jb 0x5527f2
mov edi, dword [esp + 0x30]
mov edx, edi
shr edx, 1
dec edx
mov dword [esp + 0x10], edx
cmp eax, 0x80
jae 0x552e3e
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 0x552e1e
mov ecx, ebx
shl ebp, 8
call fcn.00553c50
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 0x552db2
mov dword [ebx], ebp
jmp 0x5527f2
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 0x552e76
mov ecx, ebx
shl ebp, 8
call fcn.00553c50
cmp edi, 0xf0000000
jne 0x552e50
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 0x552eea
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.00553c50
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 0x552f67
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.00553c50
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 0x552fec
shl ebp, 8
lea ecx, [esi + 0x58]
mov dword [esp + 0x10], ebp
call fcn.00553c50
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 0x5527ed
shl edx, 8
lea ebx, [esi + 0x58]
mov ecx, ebx
mov dword [esp + 0x10], edx
call fcn.00553c50
mov edx, dword [esp + 0x10]
jmp 0x5527f0
cmp ecx, 0x20000
jb 0x552600
xor eax, eax
add dword [esi + 0xb8], ecx
mov ecx, esi
adc eax, dword [esi + 0xbc]
mov dword [esi + 0xbc], eax
call fcn.0054fe40
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x30
ret 4