Function at 0x105fb5e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, eax
mov esi, ecx
mov eax, dword [esi + 0x134]
mov eax, dword [eax + 0x148]
cmp dword [ebp + 0x1c], eax
mov dword [ebp - 4], 0x2710
jbe 0x105fba2
push eax
push dword [ebp + 0x1c]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100e808
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
jmp 0x105fe64
push edi
push dword [0x107fa1c]
push dword [0x107fa18]
push dword [0x107fa0c]
push dword [0x107fa08]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0101a461
sub eax, dword [ebp + 0x2c]
sbb edx, dword [ebp + 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [0x107c48c]
add eax, 0x1b5359
cmp byte [eax], 0
mov dword [ebp - 8], edx
je 0x105fc99
mov byte [eax], 0
mov eax, dword [esi + 0x134]
mov eax, dword [eax + 0x148]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp + 0x18], edi
jne 0x105fc26
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100e7d4
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
jmp 0x105fd85
mov eax, dword [esi + 0x134]
mov eax, dword [eax + 0x148]
lea ecx, [eax + eax*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x107c48c]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x1b535c], ecx
mov eax, dword [esi + 0x134]
mov ecx, dword [eax + 0x148]
mov eax, dword [0x107c48c]
mov edx, dword [eax + 0x1b535c]
lea ecx, [edx + ecx*8]
mov dword [eax + 0x1b5360], ecx
mov eax, dword [esi + 0x134]
mov ecx, dword [eax + 0x148]
mov eax, dword [0x107c48c]
mov edx, dword [eax + 0x1b5360]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x75310], ecx
mov eax, dword [0x107c48c]
mov eax, dword [eax + 0x75310]
mov esi, dword [ebp + 0x1c]
shl esi, 3
add eax, esi
add dword [eax], 1
push 0
pop edi
adc dword [eax + 4], edi
mov eax, dword [0x107c48c]
inc dword [eax + 0x75314]
cmp dword [ebp + 8], 0xffffffff
jne 0x105fccf
cmp dword [ebp + 0xc], edi
je 0x105fe63
mov eax, dword [0x107c48c]
add eax, 8
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
mov eax, dword [ebp + 0x18]
jne 0x105fcf9
mov ecx, dword [eax + 4]
cmp dword [ebp + 0xc], ecx
jne 0x105fcf9
cmp ebx, dword [eax + 0x10]
jne 0x105fcf9
mov ecx, dword [ebp + 0x1c]
cmp ecx, dword [eax + 0xc]
je 0x105fd1e
mov ecx, 0x2710
cmp dword [ebp - 4], ecx
jne 0x105fd11
cmp dword [eax], 0xffffffff
jne 0x105fd11
cmp dword [eax + 4], 0
jne 0x105fd11
mov dword [ebp - 4], edi
inc edi
add eax, 0x30
cmp edi, ecx
mov dword [ebp + 0x18], eax
jl 0x105fcda
jmp 0x105fd60
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push 0x100e790
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
mov eax, dword [0x107c48c]
mov edx, dword [ebp - 8]
lea ecx, [edi + edi*2]
shl ecx, 4
mov ecx, dword [ecx + eax + 0x14]
mov eax, dword [eax + 0x75310]
lea eax, [eax + ecx*8]
add esp, 0x10
add dword [eax], 0xffffffff
mov dword [ebp - 4], edi
adc dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 4]
mov ecx, 0x2710
cmp eax, ecx
jl 0x105fd8d
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ecx
push edi
add eax, 0x40
push 0x100e750
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + ecx + 8], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0xc]
mov dword [eax + ecx + 0xc], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0x10]
mov dword [eax + ecx + 0x10], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0x1c]
mov dword [eax + ecx + 0x14], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp - 0xc]
mov dword [eax + ecx + 0x18], ebx
mov ecx, dword [0x107c48c]
mov dword [eax + ecx + 0x30], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0x28]
mov dword [eax + ecx + 0x34], edx
mov ecx, dword [0x107c48c]
mov dword [eax + ecx + 0x24], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ecx + 0x75310]
mov edi, dword [edi + esi]
dec edi
mov dword [eax + ecx + 0x1c], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ecx + 0x75314]
mov dword [eax + ecx + 0x20], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0x20]
mov dword [eax + ecx + 0x28], edi
mov ecx, dword [0x107c48c]
mov edi, dword [ebp + 0x24]
mov dword [eax + ecx + 0x2c], edi
mov ecx, dword [0x107c48c]
mov ecx, dword [ecx + 0x1b535c]
xor eax, eax
add ebx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
mov dword [esi + ecx], ebx
mov dword [esi + ecx + 4], eax
mov eax, dword [0x107c48c]
mov eax, dword [eax + 0x1b5360]
mov ecx, dword [ebp - 0xc]
mov dword [esi + eax], ecx
mov dword [esi + eax + 4], edx
pop edi
pop esi
pop ebx
leave
ret 0x2c