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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xdc
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x2c], eax
movsx eax, word [esi + 0x54]
mov ebx, dword [esi + eax*4 + 0x54]
push edi
mov edi, dword [esi + eax*4 + 0x58]
mov ecx, dword [edi + 0x3c]
push dword [ebx + 0x44]
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x58], ebx
call fcn.10016261
pop ecx
test eax, eax
jne 0x10018b9c
cmp byte [edi + 3], al
je 0x100182fe
cmp byte [edi + 2], al
je 0x100182fe
cmp byte [edi + 1], 1
jne 0x100182fe
mov ax, word [edi + 0x18]
cmp ax, word [edi + 0x10]
jne 0x100182fe
cmp dword [ebx + 0x48], 1
je 0x100182fe
movzx eax, byte [ebx + 5]
mov ecx, dword [ebx + 0x40]
lea ecx, [eax + ecx + 8]
call fcn.10001f3f
cmp eax, dword [edi + 0x48]
jne 0x100182fe
push esi
call fcn.100180d6
pop ecx
jmp 0x10018b9c
push dword [edi + 0x44]
call fcn.10016261
xor edi, edi
pop ecx
cmp eax, edi
jne 0x10018b9c
movsx eax, word [esi + 0x54]
movzx eax, word [esi + eax*2 + 0xa6]
movzx ecx, word [ebx + 0x10]
dec eax
lea edx, [eax + 3]
cmp edx, ecx
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x50], eax
jle 0x1001833a
add ecx, 0xfffffffe
mov dword [ebp + 0x50], ecx
mov eax, ecx
cmp eax, edi
jge 0x10018343
mov dword [ebp + 0x50], edi
mov eax, edi
mov dword [ebp + 0x48], eax
add eax, eax
mov dword [ebp + 0x44], eax
mov esi, ebx
movzx eax, word [esi + 0x10]
cmp dword [ebp + 0x48], eax
jge 0x1001837e
movzx ecx, word [esi + 0xc]
add ecx, dword [ebp + 0x44]
mov eax, dword [esi + 0x40]
add ecx, eax
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or edx, ecx
movzx ecx, word [esi + 0x12]
and edx, ecx
add eax, edx
mov dword [ebp + edi + 4], eax
mov ecx, eax
jmp 0x1001838b
jne 0x100183db
movzx eax, byte [esi + 5]
mov ecx, dword [esi + 0x40]
lea ecx, [eax + ecx + 8]
call fcn.10001f3f
push dword [ebp + 0x64]
lea ebx, [ebp + edi + 0x10]
mov dword [ebp + edi - 0x34], eax
call fcn.10016804
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
and dword [ebp + edi - 0x24], eax
mov eax, dword [ebp + edi + 0x10]
movzx ecx, word [eax + 0x10]
movzx eax, byte [eax + 1]
add eax, dword [ebp + 0x68]
inc dword [ebp + 0x54]
add dword [ebp + 0x44], 2
inc dword [ebp + 0x48]
add edi, 4
cmp edi, 0xc
lea eax, [eax + ecx + 1]
mov dword [ebp + 0x68], eax
jl 0x1001834d
mov esi, dword [ebp + 0x64]
mov ebx, dword [ebp + 0x68]
movzx eax, word [esi + 0x1c]
movzx ecx, byte [esi + 0x13]
add ebx, 3
and ebx, 0xfffffffc
add eax, ebx
neg ecx
sbb ecx, ecx
lea eax, [ebx + eax*2 + 0x78]
and ecx, ebx
lea edi, [ecx + eax*2]
call fcn.100082ea
mov dword [ebp + 0x40], eax
test eax, eax
jne 0x10018412
push 7
pop ebx
jmp 0x10018b57
movzx edi, word [esi + 0x1c]
lea eax, [eax + ebx*4]
mov dword [ebp + 0x38], eax
lea eax, [eax + ebx*2]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp + eax*4 - 0x14]
lea ecx, [ecx + edi + 0x50]
mov dword [ebp + eax*4 - 0x10], ecx
inc eax
cmp eax, 3
jl 0x10018425
cmp byte [esi + 0x13], 0
mov eax, dword [ebp - 8]
lea eax, [edi + eax + 0x50]
mov dword [ebp + 0x3c], eax
je 0x1001844c
add eax, edi
mov dword [ebp + 0x2c], eax
call fcn.10008ebb
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1001840a
and dword [ebp + 0x6c], 0
cmp dword [ebp + 0x54], 0
jle 0x1001849f
mov eax, dword [ebp + 0x6c]
shl eax, 2
mov ebx, dword [ebp + eax + 0x10]
mov edi, dword [ebp + eax - 0x10]
push 0x4c
push ebx
push edi
mov dword [ebp + eax - 0x24], edi
call sub.MSVCR90.dll_memcpy
lea eax, [edi + 0x4c]
mov dword [edi + 0x40], eax
movzx ecx, word [esi + 0x1c]
push ecx
push dword [ebx + 0x40]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0x18
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x54]
jl 0x10018462
mov ecx, dword [ebp + 0x28]
movzx eax, byte [ecx + 3]
shl eax, 2
xor ebx, ebx
cmp dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], eax
movzx eax, byte [ecx + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x6c], ebx
jle 0x10018641
mov eax, dword [ebp + 0x54]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x6c]
and dword [ebp + 0x70], 0
shl eax, 2
mov edi, dword [ebp + eax - 0x24]
movzx ecx, byte [edi + 1]
mov dword [ebp + 0x34], eax
movzx eax, word [edi + 0x10]
add eax, ecx
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x24], eax
test eax, eax
jle 0x1001855c
mov eax, dword [ebp + 0x70]
mov ecx, edi
call fcn.10003efa
mov ecx, dword [ebp + 0x40]
push eax
lea esi, [ecx + ebx*4]
push edi
mov dword [esi], eax
call fcn.1000405f
pop ecx
pop ecx
mov ecx, dword [ebp + 0x38]
mov word [ecx + ebx*2], ax
mov eax, dword [ebp + 0x64]
cmp byte [eax + 0x13], 0
je 0x10018550
mov eax, dword [ebp + 0x2c]
mov cl, byte [ebp + 0x6c]
and dword [ebp + 0x68], 0
add eax, ebx
mov byte [eax], cl
movzx ecx, byte [edi + 1]
test ecx, ecx
jle 0x10018550
mov edx, dword [esi]
mov dword [ebp + 0x30], edx
lea edx, [edi + 0x14]
mov esi, dword [ebp + 0x30]
cmp dword [edx], esi
je 0x1001854d
inc dword [ebp + 0x68]
add edx, 8
cmp dword [ebp + 0x68], ecx
jl 0x10018539
jmp 0x10018550
mov byte [eax], 0xff
inc ebx
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 0x24]
jl 0x100184f0
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp - 0x28]
jge 0x1001862f
mov eax, dword [ebp + 0x34]
mov eax, dword [ebp + eax + 4]
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x34], eax
call fcn.1000405f
cmp dword [ebp + 0x44], 0
pop ecx
pop ecx
movzx eax, ax
je 0x1001859c
mov esi, dword [ebp + 0x58]
movzx eax, ax
push eax
push dword [ebp + 0x50]
call fcn.100049f3
pop ecx
pop ecx
jmp 0x1001862f
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x60]
lea edi, [ecx + ebx*2]
mov ecx, dword [ebp + 0x3c]
mov word [edi], ax
movzx eax, ax
add dword [ebp + 0x60], eax
push eax
push dword [ebp + 0x34]
lea esi, [ecx + edx]
push esi
mov dword [ebp + 0x30], eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [ebp + 0x48]
add esi, eax
mov eax, dword [ebp + 0x40]
mov dword [eax + ebx*4], esi
mov eax, dword [ebp + 0x64]
add esp, 0xc
cmp byte [eax + 0x13], 0
je 0x100185df
mov eax, dword [ebp + 0x2c]
mov byte [eax + ebx], 0xff
push dword [ebp + 0x30]
mov esi, dword [ebp + 0x58]
push dword [ebp + 0x50]
call fcn.100049f3
mov ax, word [ebp + 0x48]
sub word [edi], ax
movzx eax, word [edi]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5c]
cmp byte [ecx + 3], 0
jne 0x10018622
mov eax, ecx
movzx ecx, byte [eax + 5]
mov eax, dword [eax + 0x40]
lea eax, [ecx + eax + 8]
push 4
push eax
mov eax, dword [ebp + 0x40]
push dword [eax + ebx*4]
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x1001862e
cmp ax, 4
jae 0x1001862e
push 4
pop eax
mov word [edi], ax
inc ebx
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x54]
jl 0x100184cb
mov dword [ebp + 0x24], ebx
mov eax, dword [ebp + 0x64]
movzx eax, word [eax + 0x1e]
mov ecx, dword [ebp + 0x48]
lea edi, [eax + ecx - 0xc]
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x10018680
mov edx, dword [ebp + 0x38]
movzx edx, word [edx + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, edi
jle 0x1001867b
sub eax, edx
mov dword [ebp + esi*4 - 4], eax
xor eax, eax
mov dword [ebp + esi*4 - 0x48], ecx
cmp dword [ebp + 0x44], eax
je 0x1001867a
dec ecx
inc esi
inc ecx
cmp ecx, ebx
jl 0x10018659
mov dword [ebp + esi*4 - 4], eax
inc esi
mov dword [ebp + esi*4 - 0x4c], ebx
lea eax, [esi - 1]
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x6c], eax
test eax, eax
jle 0x10018713
mov eax, dword [ebp + 0x6c]
mov edi, dword [ebp + 0x38]
shl eax, 2
lea ecx, [ebp + eax - 4]
mov esi, dword [ecx]
mov dword [ebp + 0x3c], ecx
lea ecx, [ebp + eax - 8]
mov dword [ebp + 0x34], ecx
mov ecx, dword [ecx]
mov dword [ebp + 0x68], ecx
lea edx, [ebp + eax - 0x4c]
mov eax, dword [edx]
dec eax
mov ecx, eax
sub ecx, dword [ebp + 0x44]
inc ecx
test esi, esi
je 0x100186df
movzx edi, word [edi + eax*2]
mov ebx, dword [ebp + 0x68]
sub ebx, edi
mov edi, dword [ebp + 0x38]
movzx edi, word [edi + ecx*2]
dec ebx
dec ebx
lea edi, [edi + esi + 2]
cmp edi, ebx
jg 0x100186fa
mov edi, dword [ebp + 0x38]
movzx ecx, word [edi + ecx*2]
movzx eax, word [edi + eax*2]
lea esi, [esi + ecx + 2]
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
add dword [ebp + 0x68], ecx
dec dword [edx]
jmp 0x100186b8
mov eax, dword [ebp + 0x3c]
dec dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0
mov ecx, dword [ebp + 0x34]
mov dword [eax], esi
mov eax, dword [ebp + 0x68]
mov dword [ecx], eax
jg 0x10018696
mov esi, dword [ebp + 0x70]
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x40]
movzx eax, byte [eax]
xor edi, edi
mov dword [ebp + 0x30], eax
test esi, esi
jle 0x100187b8
cmp edi, dword [ebp + 0x54]
jge 0x10018763
mov eax, edi
shl eax, 2
mov ebx, dword [ebp + eax - 0x34]
lea ecx, [ebp + eax + 0x10]
mov edx, dword [ecx]
push dword [edx + 0x44]
and dword [ecx], 0
mov dword [ebp + eax - 0x18], edx
mov dword [ebp + 0x5c], edx
mov dword [ebp + eax - 4], ebx
call fcn.10016261
inc dword [ebp + 0x4c]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
jmp 0x10018790
push 0
lea eax, [ebp + edi*4 - 4]
push dword [eax - 4]
push eax
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x64]
call fcn.1001769e
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10018b57
mov eax, dword [ebp + 0x5c]
inc dword [ebp + 0x4c]
mov dword [ebp + edi*4 - 0x18], eax
inc edi
cmp edi, esi
jl 0x10018729
jmp 0x100187b8
mov eax, dword [ebp + edi*4 + 0x10]
call fcn.10017b11
mov ebx, eax
test ebx, ebx
jne 0x10018b57
mov eax, dword [ebp + edi*4 + 0x10]
call fcn.100128c0
and dword [ebp + edi*4 + 0x10], ebx
inc edi
cmp edi, dword [ebp + 0x54]
jl 0x10018797
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x10018838
mov eax, ecx
shl eax, 2
lea ebx, [ecx + 1]
cmp ebx, esi
lea edi, [ebp + eax - 4]
mov edx, dword [edi]
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x70], ebx
jge 0x1001882e
mov ebx, dword [ebp + 0x70]
mov ebx, dword [ebp + ebx*4 - 4]
cmp ebx, edx
jae 0x100187f7
mov edx, dword [ebp + 0x70]
mov dword [ebp + 0x5c], edx
mov edx, ebx
inc dword [ebp + 0x70]
cmp dword [ebp + 0x70], esi
jl 0x100187e4
mov edx, dword [ebp + 0x5c]
cmp edx, ecx
jle 0x1001882e
lea eax, [ebp + eax - 0x18]
mov ecx, dword [eax]
mov dword [ebp + 0x34], ecx
mov ecx, edx
shl ecx, 2
lea edx, [ebp + ecx - 4]
mov ebx, dword [edx]
lea ecx, [ebp + ecx - 0x18]
mov dword [edi], ebx
mov edi, dword [ecx]
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
mov dword [edx], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x60]
lea eax, [esi - 1]
cmp ecx, eax
jl 0x100187c6
xor edi, edi
cmp dword [ebp + 0x4c], edi
mov dword [ebp + 0x6c], edi
jle 0x10018aae
jmp 0x1001884b
mov edi, dword [ebp + 0x70]
mov ebx, dword [ebp + 0x6c]
push dword [ebp + 0x30]
shl ebx, 2
mov esi, dword [ebp + ebx - 0x18]
call fcn.10004617
mov eax, dword [ebp + 0x38]
lea eax, [eax + edi*2]
lea ebx, [ebp + ebx - 0x48]
push eax
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x3c], ebx
mov ebx, dword [ebx]
lea eax, [eax + edi*4]
mov dword [ebp + 0x5c], ebx
push eax
sub ebx, edi
call fcn.10004a9a
mov eax, dword [ebp + 0x64]
add esp, 0xc
cmp byte [eax + 0x13], 0
je 0x1001890e
cmp edi, dword [ebp + 0x5c]
mov dword [ebp + 0x70], edi
jge 0x1001890e
and dword [ebp + 0x60], 0
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x70]
mov al, byte [ecx + eax]
cmp al, 0xff
je 0x100188b6
movzx eax, al
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
je 0x100188fe
mov eax, dword [ebp + 0x60]
mov ecx, esi
call fcn.10003efa
push eax
mov edi, esi
call fcn.10016772
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
cmp dword [ebp + 0x48], eax
jne 0x100188fe
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x70]
push dword [esi + 0x48]
mov ecx, dword [eax + ecx*4]
call fcn.10001f3f
mov ecx, dword [ebp + 0x64]
mov bl, 5
call fcn.10016688
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x70]
inc dword [ebp + 0x60]
cmp ecx, dword [eax]
jl 0x1001889a
mov eax, dword [ebp + 0x4c]
mov ebx, dword [ebp + 0x5c]
dec eax
cmp dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ebx
jge 0x10018a78
cmp ebx, dword [ebp + 0x24]
jge 0x10018a78
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ebp + 0x20]
mov dword [ebp + 0x68], ecx
mov ecx, dword [ebp + 0x38]
movzx ecx, word [ecx + ebx*2]
movzx edi, cx
add edi, dword [ebp + 0x48]
mov dword [ebp + 0x3c], ecx
mov ecx, dword [ebp + 0x1c]
add ecx, edx
cmp byte [esi + 3], 0
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], ecx
jne 0x100189b4
mov eax, dword [esi + 0x40]
push 4
push dword [ebp + 0x68]
add eax, 8
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [ebp + 0x64]
add esp, 0xc
cmp byte [eax + 0x13], 0
je 0x10018a0f
mov eax, dword [ebp + 0x2c]
mov bl, byte [ebx + eax]
cmp bl, 0xff
je 0x10018992
movzx eax, bl
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
je 0x10018a0f
push dword [esi + 0x48]
mov ecx, dword [ebp + 0x68]
call fcn.10001f3f
mov ecx, dword [ebp + 0x64]
mov bl, 5
call fcn.10016688
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
jmp 0x10018a0f
cmp dword [ebp + 0x44], 0
je 0x100189f4
dec ebx
push dword [eax + ebx*4]
mov dword [ebp + 0x70], ebx
push esi
lea ebx, [ebp - 0x68]
call fcn.10003f43
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x5c]
push ecx
xor edi, edi
push edi
push edi
push edi
push dword [ebp - 0x5c]
mov dword [ebp + 0x68], eax
push dword [ebp - 0x60]
push edi
push eax
mov eax, dword [ebp + 0x58]
call fcn.10017d2d
mov dword [ebp + 0x60], edi
mov edi, dword [ebp + 0x5c]
add esp, 0x28
jmp 0x10018a0f
sub dword [ebp + 0x68], 4
cmp word [ebp + 0x3c], 4
jne 0x10018a0f
push dword [ebp + 0x68]
push dword [ebp + 0x58]
call fcn.1000405f
pop ecx
pop ecx
movzx edi, ax
mov eax, dword [ebp + 0x60]
mov edx, dword [ebp + 0x58]
add dword [ebp + 0x20], edi
push 4
push dword [ebp + 0x68]
mov ecx, edi
push dword [ebp + 0x50]
call fcn.10017f15
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10018b57
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x58]
call fcn.10003efa
mov ecx, dword [esi + 0x48]
call fcn.10001f5e
mov eax, dword [ebp + 0x64]
cmp byte [eax + 0x13], bl
je 0x10018a72
cmp dword [ebp + 0x44], ebx
jne 0x10018a72
mov edi, dword [ebp + 0x58]
mov eax, dword [ebp + 0x50]
mov ecx, edi
call fcn.10003efa
push eax
call fcn.10016772
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
inc dword [ebp + 0x70]
inc dword [ebp + 0x50]
mov eax, dword [ebp + 0x64]
cmp byte [eax + 0x13], 0
je 0x10018a9f
mov eax, dword [ebp + 0x58]
push dword [eax + 0x48]
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp + 0x64]
mov bl, 5
call fcn.10016688
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x4c]
jl 0x10018848
test byte [ebp + 0x30], 8
mov ecx, dword [ebp + 0x58]
mov esi, dword [ebp + 0x4c]
jne 0x10018b04
mov eax, dword [ebp + 0x54]
mov eax, dword [ebp + eax*4 - 0x28]
mov edi, dword [eax + 0x40]
mov ebx, dword [ebp + esi*4 - 0x1c]
mov eax, dword [ebx + 0x40]
push 4
add edi, 8
add eax, 8
push edi
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [ebp + 0x64]
add esp, 0xc
cmp byte [eax + 0x13], 0
je 0x10018b01
push dword [ebx + 0x48]
mov ecx, edi
call fcn.10001f3f
mov ecx, dword [ebp + 0x64]
mov bl, 5
call fcn.10016688
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10018b57
mov ecx, dword [ebp + 0x58]
movzx eax, word [ecx + 0x10]
movzx edx, byte [ecx + 1]
add edx, eax
mov eax, dword [ebp + 0x50]
cmp eax, edx
jne 0x10018b22
movzx eax, byte [ecx + 5]
mov ecx, dword [ecx + 0x40]
lea eax, [eax + ecx + 8]
jmp 0x10018b27
call fcn.10003efa
mov ecx, dword [ebp + esi*4 - 8]
call fcn.10001f5e
mov eax, dword [ebp + 0x40]
call fcn.100083b1
mov eax, dword [ebp + 0x28]
and dword [ebp + 0x40], 0
call fcn.100128c0
mov eax, dword [ebp + 0x7c]
dec word [eax + 0x54]
push 0
push eax
call fcn.10018e8a
pop ecx
pop ecx
mov ebx, eax
mov esi, dword [ebp + 0x1c]
call fcn.10002d75
mov eax, dword [ebp + 0x40]
call fcn.100083b1
xor esi, esi
cmp dword [ebp + 0x54], esi
jle 0x10018b7d
mov eax, dword [ebp + esi*4 + 0x10]
call fcn.100128c0
inc esi
cmp esi, dword [ebp + 0x54]
jl 0x10018b6e
xor esi, esi
cmp dword [ebp + 0x4c], esi
jle 0x10018b93
mov eax, dword [ebp + esi*4 - 0x18]
call fcn.100128c0
inc esi
cmp esi, dword [ebp + 0x4c]
jl 0x10018b84
mov eax, dword [ebp + 0x28]
mov byte [eax + 1], 0
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret