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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
cmp dword [edi + 0xa8], 0
mov dword [edi + 0xac], 1
je 0x1008d474
mov edx, dword [edi + 0x4c]
and edx, eax
call fcn.1008d260
mov esi, 5
nop dword [eax]
lea ecx, [edi + 0x58]
call fcn.1008b470
sub esi, 1
jne 0x1008d480
lea ecx, [edi + 0x58]
call fcn.1008b430
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.1008d3f0
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], esi
cmp dword [esi + 0xb4], 0
je 0x1008de8b
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 4
mov dword [esi + 0xb4], 0
cmp dword [esi + 0xac], 0
je 0x1008de9f
mov eax, dword [esi + 0xd0]
pop esi
add esp, 0x2c
ret
mov ecx, esi
call fcn.1008d3f0
test eax, eax
jne 0x1008de9a
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 + 0x2c], edi
jne 0x1008df53
push dword [esi]
mov eax, dword [esi + 8]
call eax
add esp, 4
mov ecx, esi
test eax, eax
jne 0x1008dee5
mov edx, edi
pop edi
pop ebx
pop esi
add esp, 0x2c
jmp 0x1008d450
lea edx, [esp + 0x30]
call fcn.1008ba90
movzx edx, word [esi + 0x1e9c]
mov eax, 0x800
mov edi, dword [esi + 0x58]
mov ecx, edx
shr edi, 0xb
sub eax, ecx
imul edi, ecx
shr eax, 5
add eax, edx
mov word [esi + 0x1e9c], ax
cmp edi, 0x1000000
jae 0x1008df26
lea ecx, [esi + 0x58]
shl edi, 8
call fcn.1008b470
mov dword [esi + 0x58], edi
push dword [esi]
mov eax, dword [esi + 0xc]
call eax
sub eax, dword [esi + 0x34]
lea ecx, [esi + 0x58]
mov edx, dword [esi + 0x50]
mov al, byte [eax]
movzx eax, al
push eax
call fcn.1008b510
mov edi, dword [esp + 0x20]
add esp, 8
dec dword [esi + 0x34]
inc edi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 8]
push ebp
push dword [esi]
call eax
add esp, 4
test eax, eax
je 0x1008e985
lea ebx, [esi + 0x58]
mov dword [esp + 0x34], ebx
nop dword [eax]
cmp dword [esi + 0xa4], 0
je 0x1008df86
mov ecx, esi
call fcn.1008cf20
mov dword [esp + 0x18], eax
jmp 0x1008dfc0
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], ecx
jne 0x1008df9d
mov edx, edi
mov ecx, esi
call fcn.1008bb20
mov dword [esp + 0x18], eax
jmp 0x1008dfc0
mov eax, ecx
shl eax, 5
mov edx, dword [eax + esi + 0xbcac]
mov eax, dword [eax + esi + 0xbcb0]
mov dword [esi + 0x90], eax
lea eax, [ecx + 1]
mov dword [esp + 0x18], edx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x2c]
mov ecx, edi
and ecx, dword [esi + 0x4c]
mov edi, dword [ebx]
mov ebp, dword [esi + 0x90]
mov dword [esp + 0x20], ecx
add ecx, 0xf4e
shl eax, 4
add eax, ecx
movzx ecx, word [esi + eax*2]
movzx ebx, word [esi + eax*2]
lea eax, [esi + eax*2]
mov dword [esp + 0x2c], ecx
movzx edx, cx
mov ecx, edi
shr ecx, 0xb
imul ecx, edx
mov dword [esp + 0x14], ebx
lea ebx, [esi + 0x58]
mov dword [esp + 0x28], eax
cmp ebp, 0xffffffff
jne 0x1008e173
mov eax, 0x800
sub eax, edx
mov edx, dword [esp + 0x28]
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x1008e03c
shl ecx, 8
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.1008b470
mov ecx, dword [esp + 0x2c]
push dword [esi]
mov eax, dword [esi + 0xc]
mov dword [ebx], ecx
call eax
mov ecx, dword [esp + 0x20]
mov ebp, eax
sub ebp, dword [esi + 0x34]
add esp, 4
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 eax, [eax + ecx*2]
mov cl, byte [ebp]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0x1017b27c]
mov dword [esi + 0x2c], eax
movzx edx, cl
cmp edi, 7
jae 0x1008e09e
push edx
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.1008b510
add esp, 4
jmp 0x1008e8ac
sub ebp, dword [esi + 0x38]
mov esi, dword [esp + 0x34]
movzx ebx, byte [ebp]
mov ebp, 0x100
mov eax, dword [esi]
or edx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
nop word [eax + eax]
add ebx, ebx
mov ecx, edx
shr ecx, 8
mov eax, ebx
and eax, ebp
mov dword [esp + 0x10], ebx
add ecx, ebp
mov edi, edx
add eax, ecx
shr edi, 7
mov ecx, dword [esp + 0x28]
add edx, edx
lea ebp, [ecx + eax*2]
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x14]
xor ebx, edx
not ebx
shr ecx, 0xb
and dword [esp + 0x20], ebx
and edi, 1
movzx ebx, word [ebp]
mov eax, edi
neg eax
mov edx, ebx
and dword [esp + 0x14], eax
imul ecx, edx
and eax, ecx
sub dword [esp + 0x14], eax
add dword [esi + 8], eax
lea eax, [edi - 1]
mov edi, dword [esp + 0x14]
adc dword [esi + 0xc], 0
and ecx, eax
and eax, 0x7e1
add edi, ecx
sub eax, edx
mov dword [esp + 0x14], edi
add eax, 0x1f
sar eax, 5
add eax, ebx
mov word [ebp], ax
cmp edi, 0x1000000
jae 0x1008e14d
shl edi, 8
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.1008b470
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
cmp edx, 0x10000
jb 0x1008e0c0
mov esi, dword [esp + 0x24]
lea ebx, [esi + 0x58]
mov dword [ebx], edi
jmp 0x1008e8ac
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x14]
adc dword [esi + 0x64], 0
shr edx, 5
sub ecx, edx
mov word [eax], cx
cmp edi, 0x1000000
jae 0x1008e19a
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0xf1e
shr ecx, 0xb
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
movzx eax, word [eax]
movzx edx, ax
imul ecx, edx
mov dword [esp + 0x2c], eax
movzx eax, ax
cmp ebp, 4
jae 0x1008e40a
sub edi, ecx
add dword [esi + 0x60], ecx
adc dword [esi + 0x64], 0
shr edx, 5
sub eax, edx
mov edx, dword [esp + 0x28]
mov word [edx], ax
cmp edi, 0x1000000
jae 0x1008e1ee
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0xf2a
shr ecx, 0xb
movzx ebx, word [esi + eax*2]
lea eax, [esi + eax*2]
movzx edx, bx
mov dword [esp + 0x2c], ebx
movzx ebx, bx
imul ecx, edx
mov dword [esp + 0x14], ebx
lea ebx, [esi + 0x58]
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x1008e2b0
mov eax, 0x800
mov edi, ecx
sub eax, edx
mov edx, dword [esp + 0x28]
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x1008e24b
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov eax, dword [esi + 0x2c]
shl eax, 4
add eax, dword [esp + 0x20]
movzx edx, word [esi + eax*2 + 0x201c]
lea ebp, [esi + eax*2]
mov eax, edi
mov ecx, edx
shr eax, 0xb
imul eax, ecx
cmp dword [esp + 0x18], 1
je 0x1008e28b
sub edi, eax
add dword [esi + 0x60], eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub edx, ecx
mov word [ebp + 0x201c], dx
jmp 0x1008e3b9
mov edi, eax
mov eax, 0x800
sub eax, ecx
shr eax, 5
add word [ebp + 0x201c], ax
mov eax, dword [esi + 0x2c]
movzx eax, byte [eax + str._t_t_t_t_t_t_t_v_v_v_v_v]
mov dword [esi + 0x2c], eax
jmp 0x1008e3b9
sub edi, ecx
add dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x14]
adc dword [esi + 0x64], 0
shr edx, 5
sub ecx, edx
mov word [eax], cx
cmp edi, 0x1000000
jae 0x1008e2d7
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov eax, dword [esi + 0x2c]
add eax, 0xf36
movzx edx, word [esi + eax*2]
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
mov eax, edi
movzx ecx, dx
shr eax, 0xb
imul eax, ecx
mov dword [esp + 0x2c], edx
movzx edx, dx
cmp ebp, 1
jne 0x1008e320
mov edi, eax
mov eax, 0x800
sub eax, ecx
mov ecx, dword [esp + 0x28]
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [ecx], ax
mov ecx, dword [esi + 0x3c]
jmp 0x1008e3b0
sub edi, eax
add dword [esi + 0x60], eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub edx, ecx
mov ecx, dword [esp + 0x28]
mov word [ecx], dx
cmp edi, 0x1000000
jae 0x1008e347
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov eax, dword [esi + 0x2c]
movzx ecx, word [esi + eax*2 + 0x1e84]
lea edx, [esi + eax*2]
movzx ebx, word [edx + 0x1e84]
mov eax, edi
shr eax, 0xb
imul eax, ecx
mov dword [esp + 0x2c], ebx
lea ebx, [esi + 0x58]
cmp ebp, 2
jne 0x1008e388
mov edi, eax
mov eax, 0x800
sub eax, ecx
shr eax, 5
add word [edx + 0x1e84], ax
mov ecx, dword [esi + 0x40]
jmp 0x1008e3aa
sub edi, eax
add dword [esi + 0x60], eax
mov eax, dword [esp + 0x2c]
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx + 0x1e84], ax
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
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
mov dword [esi + 0x38], ecx
cmp edi, 0x1000000
jae 0x1008e3cb
mov ecx, ebx
shl edi, 8
call fcn.1008b470
mov ebp, dword [esp + 0x18]
mov dword [ebx], edi
cmp ebp, 1
je 0x1008e8b0
push dword [esp + 0x20]
lea eax, [ebp - 2]
mov edx, ebx
push eax
lea ecx, [esi + 0x289c]
call fcn.1008b630
mov eax, dword [esi + 0x2c]
add esp, 8
dec dword [esi + 0xc4]
movzx eax, byte [eax + str._b_b_b_b_b_b_b_v_v_v_v_v]
mov dword [esi + 0x2c], eax
jmp 0x1008e8b0
mov eax, 0x800
sub eax, edx
mov edx, dword [esp + 0x28]
shr eax, 5
add eax, dword [esp + 0x2c]
mov word [edx], ax
cmp ecx, 0x1000000
jae 0x1008e439
shl ecx, 8
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.1008b470
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x2c]
mov edx, ebx
push dword [esp + 0x20]
mov dword [ebx], ecx
lea ecx, [esi + 0x249c]
movzx eax, byte [eax + str._a_a_a_a_a_a_a_n_n_n_n_n]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
push eax
call fcn.1008b630
mov eax, dword [esi + 0x40]
sub ebp, 4
mov dword [esi + 0x44], eax
add esp, 8
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 0x1008e4a0
and eax, 0x7f
movzx edi, byte [eax + esi + 0x2c9c]
jmp 0x1008e4bb
cmp ebp, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2c9c]
lea edi, [eax + ecx*2]
mov edx, dword [ebx]
mov eax, 3
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], 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 + 0x219c]
add ecx, esi
mov dword [esp + 0x20], ecx
jmp 0x1008e4f4
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 + 0x2c], 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 0x1008e565
shl ebp, 8
mov ecx, ebx
mov dword [esp + 0x10], ebp
call fcn.1008b470
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cmp edi, 0x1000
jb 0x1008e4f0
mov edi, dword [esp + 0x14]
mov dword [ebx], ebp
cmp edi, 4
jb 0x1008e8ac
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp edi, 0x80
jae 0x1008e63e
and edx, 1
mov ecx, eax
or edx, 2
shl edx, cl
lea ecx, [edx + 0x11ce]
lea ecx, [esi + ecx*2]
mov esi, 1
mov dword [esp + 0x28], ecx
nop dword [eax]
mov eax, edi
shr edi, 1
and eax, 1
mov dword [esp + 0x14], edi
movzx edi, word [ecx + esi*2]
mov ecx, ebp
mov dword [esp + 0x20], eax
mov edx, edi
neg eax
shr ecx, 0xb
and ebp, eax
imul ecx, edx
and eax, ecx
sub ebp, eax
add dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
adc dword [ebx + 0xc], 0
dec eax
and ecx, eax
and eax, 0x7e1
sub eax, edx
add ebp, ecx
mov ecx, dword [esp + 0x28]
add eax, 0x1f
sar eax, 5
add eax, edi
mov word [ecx + esi*2], ax
cmp ebp, 0x1000000
jae 0x1008e622
mov ecx, ebx
shl ebp, 8
call fcn.1008b470
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
add esi, esi
or esi, dword [esp + 0x20]
sub dword [esp + 0x10], 1
jne 0x1008e5c0
mov esi, dword [esp + 0x24]
mov dword [ebx], ebp
jmp 0x1008e8ac
mov ecx, 0x20
mov edx, edi
sub ecx, eax
or edx, 0xf
shl edx, cl
nop dword [eax]
mov eax, edx
shr ebp, 1
shr eax, 0x1f
neg eax
and eax, ebp
add dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
adc dword [esi + 0x64], 0
add edx, edx
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x2c], edx
cmp ebp, 0x1000000
jae 0x1008e68a
mov ecx, ebx
shl ebp, 8
call fcn.1008b470
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov edx, dword [esp + 0x2c]
cmp edx, 0xf0000000
jne 0x1008e650
movzx ebx, word [esi + 0x1e1e]
mov edx, edi
and edx, 1
shr edi, 1
mov dword [esp + 0x20], edx
mov edx, ebp
mov esi, dword [esp + 0x20]
shr edx, 0xb
mov dword [esp + 0x14], edi
mov edi, ebx
imul edx, edi
mov dword [esp + 0x10], esi
neg dword [esp + 0x10]
and ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
and dword [esp + 0x10], edx
sub ebp, dword [esp + 0x10]
add dword [esp + 0x10], eax
mov eax, 0
adc eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
dec ecx
mov eax, dword [esp + 0x10]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x28]
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 + 0x1e1e], cx
cmp ebp, 0x1000000
jae 0x1008e72e
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.1008b470
mov eax, dword [esi + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov edx, ebp
mov ecx, eax
shr edx, 0xb
shr eax, 1
and ecx, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
neg ecx
and ebp, ecx
movzx ebx, word [esi + eax*2 + 0x1e20]
xor eax, eax
mov edi, ebx
imul edx, edi
and ecx, edx
sub ebp, ecx
add ecx, dword [esp + 0x10]
mov dword [esi + 0x60], ecx
adc eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esi + 0x64], eax
mov eax, ecx
and ecx, 0x7e1
sub ecx, edi
and eax, edx
add ecx, 0x1f
add ebp, eax
sar ecx, 5
add ecx, ebx
mov ebx, dword [esp + 0x20]
mov word [esi + ebx*2 + 0x1e20], cx
cmp ebp, 0x1000000
jae 0x1008e7a9
lea ecx, [esi + 0x58]
shl ebp, 8
call fcn.1008b470
mov eax, dword [esp + 0x2c]
add ebx, 2
lea edx, [eax + ebx*2]
mov eax, dword [esp + 0x14]
movzx ebx, word [esi + edx*2 + 0x1e1c]
mov ecx, eax
and ecx, 1
shr eax, 1
mov dword [esp + 0x2c], edx
mov edi, ebx
mov edx, ebp
mov dword [esp + 0x14], eax
mov eax, ecx
shr edx, 0xb
imul edx, edi
neg eax
and ebp, eax
mov dword [esp + 0x28], ecx
and eax, edx
sub ebp, 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
mov edi, dword [esp + 0x2c]
add ecx, 0x1f
sar ecx, 5
add ebp, eax
add ecx, ebx
mov dword [esp + 0x10], ebp
mov word [esi + edi*2 + 0x1e1c], cx
cmp ebp, 0x1000000
jae 0x1008e82b
shl ebp, 8
lea ecx, [esi + 0x58]
mov dword [esp + 0x10], ebp
call fcn.1008b470
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, ecx
and dword [esp + 0x14], 1
shr edx, 0xb
lea eax, [eax + edi*2]
movzx ebx, word [esi + eax*2 + 0x1e1c]
lea ebp, [esi + eax*2]
mov eax, dword [esp + 0x14]
mov edi, ebx
imul edx, edi
neg eax
and ecx, eax
and eax, edx
sub ecx, eax
add dword [esi + 0x60], eax
mov dword [esp + 0x10], ecx
adc dword [esi + 0x64], 0
mov ecx, dword [esp + 0x14]
dec ecx
mov eax, ecx
and ecx, 0x7e1
sub ecx, edi
and eax, edx
mov edx, dword [esp + 0x10]
add ecx, 0x1f
sar ecx, 5
add edx, eax
add ecx, ebx
lea ebx, [esi + 0x58]
mov word [ebp + 0x1e1c], cx
cmp edx, 0x1000000
jae 0x1008e8aa
shl edx, 8
mov ecx, ebx
mov dword [esp + 0x10], edx
call fcn.1008b470
mov edx, dword [esp + 0x10]
mov dword [ebx], edx
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add edi, ebp
sub dword [esi + 0x34], ebp
mov dword [esp + 0x1c], edi
jne 0x1008df70
cmp dword [esi + 0xa4], 0
jne 0x1008e940
cmp dword [esi + 0xc0], 0x40
lea edi, [esi + 0x748]
jb 0x1008e909
mov ecx, esi
call fcn.1008d4a0
mov ecx, esi
call fcn.1008d7f0
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x249c]
push edi
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x349c]
push eax
call fcn.1008b910
cmp dword [esi + 0xc4], 0
jg 0x1008e93c
mov ecx, dword [esi + 0x9c]
lea eax, [esi + 0x289c]
push edi
mov edx, 1
mov dword [esi + 0xc4], 0x40
shl edx, cl
lea ecx, [esi + 0x78a0]
push eax
call fcn.1008b910
mov edi, dword [esp + 0x1c]
push dword [esi]
mov eax, dword [esi + 8]
call eax
add esp, 4
test eax, eax
je 0x1008e985
mov ebp, dword [esp + 0x38]
mov eax, edi
sub eax, dword [esp + 0x30]
test ebp, ebp
je 0x1008e9a8
add eax, 0x92c
cmp eax, dword [esp + 0x40]
jae 0x1008e985
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 0x1008df70
mov eax, edi
mov edx, edi
sub eax, dword [esp + 0x30]
mov ecx, esi
add dword [esi + 0xb8], eax
pop ebp
adc dword [esi + 0xbc], 0
pop edi
pop ebx
pop esi
add esp, 0x2c
jmp 0x1008d450
cmp eax, 0x20000
jb 0x1008df70
add dword [esi + 0xb8], eax
mov ecx, esi
pop ebp
adc dword [esi + 0xbc], 0
pop edi
pop ebx
pop esi
add esp, 0x2c
jmp fcn.1008d3f0