Function at 0x10002f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x228
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10002fa0
test ebx, ebx
je 0x10002fa0
mov eax, ebx
nop
dec eax
cmp dword [edi + eax*4], 0
jne 0x10002f7d
test eax, eax
jne 0x10002f70
jmp 0x10002fa0
lea ecx, [eax + 1]
test ecx, ecx
je 0x10002fa0
mov edi, dword [edi + ecx*4 - 4]
xor esi, esi
mov eax, 0x80000000
nop
test eax, edi
jne 0x10002f99
inc esi
shr eax, 1
jne 0x10002f90
shl ecx, 5
sub ecx, esi
jne 0x10002fc3
cmp ebx, 1
jbe 0x10002faf
lea edi, [edx + 4]
lea ecx, [ebx - 1]
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop esi
mov dword [edx], 1
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp ecx, 1
jne 0x10002fec
test ebx, ebx
je 0x10002fde
mov ecx, dword [ebp + 0xc]
mov eax, edx
sub ecx, edx
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec ebx
jne 0x10002fd3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
mov edi, edi
cmp esi, 0x20
jae 0x10003004
cmp dword [esi*4 + 0x10053a44], ecx
ja 0x10003004
inc esi
cmp esi, 8
jb 0x10002ff0
cmp esi, 1
ja 0x10003026
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
push edx
mov eax, ebx
call fcn.10002d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea edi, [ebx + ebx]
push 4
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x10003047
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10003062
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1000307d
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 4
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10003098
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
push ebx
push ecx
push eax
push eax
push edx
mov dword [ebp - 0x228], eax
call fcn.10002cd0
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edi, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
jbe 0x1000313a
lea ebx, [ebx]
mov eax, dword [ebp - 8]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000303f
mov ecx, dword [ebp + edi*4 - 0x22c]
mov dword [ebp + edi*4 - 0x228], esi
test ebx, ebx
je 0x1000310e
sub ecx, esi
mov edx, ebx
nop
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x10003100
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push ebx
push esi
push ecx
call fcn.10002010
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp - 0xc]
push eax
push ecx
push esi
push edx
mov eax, ebx
call fcn.10002250
inc edi
cmp edi, dword [ebp - 0x24]
jb 0x100030d0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], 1
mov eax, ebx
jmp 0x10003150
dec eax
cmp dword [edx + eax*4], 0
jne 0x10003200
test eax, eax
jne 0x10003150
xor edi, edi
mov ecx, dword [edx + edi*4 - 4]
lea edx, [edx + edi*4 - 4]
mov dword [ebp + 0xc], edi
mov eax, 0x80000000
test eax, ecx
jne 0x10003179
shr eax, 1
jne 0x10003171
xor esi, esi
test edi, edi
mov edi, dword [ebp - 0x28]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x18], esi
je 0x10003329
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], 0
jne 0x100031be
mov eax, dword [ebp - 4]
push ebx
push edi
push eax
call fcn.10002560
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
push edx
push eax
push edi
push ecx
mov eax, ebx
call fcn.10002250
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x18], 0
jne 0x10003238
mov edx, dword [ebp - 0x14]
test dword [edx], eax
je 0x100032a8
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov dword [ebp - 0x18], ecx
jbe 0x1000321d
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
lea esp, [esp]
cmp eax, 1
jne 0x10003208
dec edx
mov eax, 0x80000000
sub esi, 4
jmp 0x1000320a
lea edi, [eax + 1]
jmp 0x10003161
shr eax, 1
add ecx, ecx
test edx, edx
je 0x10003217
test dword [esi], eax
je 0x10003217
or ecx, 1
dec edi
jne 0x100031f0
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1000322e
test cl, 1
jne 0x1000322e
shr ecx, 1
dec esi
jne 0x10003224
mov eax, dword [ebp + 0x10]
shr ecx, 1
mov dword [ebp + 0x18], ecx
jmp 0x1000323d
test esi, esi
je 0x1000323d
dec esi
cmp esi, 1
jae 0x100032a8
cmp dword [ebp - 0x10], 0
je 0x10003274
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + eax*4 - 0x228]
test ebx, ebx
je 0x1000326b
mov eax, edi
sub ecx, edi
mov edx, ebx
lea esp, [esp]
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x10003260
mov dword [ebp - 0x10], 0
jmp 0x100032a0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + ecx*4 - 0x228]
mov esi, dword [ebp - 4]
push ebx
push edi
push edx
mov eax, esi
call fcn.10002010
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push eax
push ecx
push esi
push edi
push edx
mov eax, ebx
call fcn.10002250
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x18], esi
cmp eax, 1
jne 0x100032bb
dec dword [ebp + 0xc]
sub dword [ebp - 0x14], 4
mov eax, 0x80000000
jmp 0x100032bd
shr eax, 1
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], eax
jne 0x10003192
cmp dword [ebp - 0x18], 0
je 0x10003329
cmp dword [ebp - 0x10], 0
je 0x100032fd
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + eax*4 - 0x228]
test ebx, ebx
je 0x1000333f
mov eax, edi
sub ecx, edi
mov edx, ebx
lea ebx, [ebx]
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x100032f0
jmp 0x10003329
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + ecx*4 - 0x228]
mov esi, dword [ebp - 4]
push ebx
push edi
push edx
mov eax, esi
call fcn.10002010
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push eax
push ecx
push esi
push edi
push edx
mov eax, ebx
call fcn.10002250
test ebx, ebx
je 0x1000333f
mov eax, dword [ebp + 8]
mov ecx, edi
sub ecx, eax
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec ebx
jne 0x10003334
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003350
dec eax
mov dword [edi + eax*4], 0
jne 0x10003346
mov eax, dword [edi]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push edi
call ebx
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov eax, edi
test edi, edi
je 0x1000337a
dec eax
mov dword [ecx + eax*4], 0
jne 0x10003370
mov edx, dword [ecx]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
push ecx
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
test edi, edi
je 0x1000339b
dec eax
mov dword [ecx + eax*4], 0
jne 0x10003391
mov edx, dword [ecx]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
push ecx
call ebx
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
test edi, edi
je 0x100033bc
dec eax
mov dword [ecx + eax*4], 0
jne 0x100033b2
mov edx, dword [ecx]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
push ecx
call ebx
mov esi, 1
add esp, 4
cmp dword [ebp - 0x24], esi
jbe 0x10003419
mov ecx, dword [ebp + esi*4 - 0x228]
test ecx, ecx
je 0x100033f7
mov eax, edi
test edi, edi
je 0x100033ef
dec eax
mov dword [ecx + eax*4], 0
jne 0x100033e5
mov ecx, dword [ecx]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + esi*4 - 0x228]
test eax, eax
je 0x10003413
push eax
call ebx
add esp, 4
mov dword [ebp + esi*4 - 0x228], 0
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x100033d4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14