Function at 0x58d9c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.005810a0
mov eax, edx
mov dword [esp + 0x14], ecx
push ebx
push esi
mov dword [esp + 0x20], eax
xor edx, edx
mov ebx, dword [eax + 0x504]
mov esi, dword [eax + 0x510]
mov ecx, dword [eax + 0x508]
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebx
push edi
test ebx, ebx
jle 0x58dbbc
lea esi, [ebx*4]
mov eax, 0xffffff38
mov ecx, esi
mov dword [esp + 0x2c], esi
shr ecx, 2
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x50]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x368]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x260]
shr ecx, 2
mov eax, 1
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x470]
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea edi, [ebx - 1]
mov dword [esp + 0xc], edi
xor esi, esi
test edi, edi
jle 0x58dfb7
lea edi, [esp + 0x578]
xor ebx, ebx
push dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.0058c390
mov ecx, dword [esp + 0x28]
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x58da82
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x58dfb5
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0xffffff38
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffff38
push eax
mov edx, edi
lea ecx, [esp + 0x584]
call fcn.0058c0c0
mov edi, dword [esp + 0x20]
mov esi, 2
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x158], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x15c], eax
cmp ebx, esi
jle 0x58de01
mov edx, dword [esp + 0x24]
lea eax, [edx + 0x210]
mov dword [esp + 0xc], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x368]
mov eax, dword [esp + eax*4 + 0x260]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x58ddd8
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x470], eax
mov dword [esp + 0x3c], edi
mov ebx, dword [edx + ecx*4 + 0x344]
mov edx, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [esp + ecx*4 + 0x158]
lea ecx, [ebx + ecx*4]
mov ebx, dword [ecx]
mov dword [esp + 0x44], ecx
test edx, edx
js 0x58dc04
test ebx, ebx
jns 0x58dc00
mov ebx, edx
jmp 0x58dc04
lea eax, [ebx*4]
mov dword [esp + 0x2c], eax
lea edi, [ebx - 1]
mov dword [esp + 0xc], edi
test ebx, ebx
jne 0x58da6f
mov edx, dword [ebp + 8]
lea eax, [esp + 0x578]
push esi
push ecx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.0058c390
lea ecx, [ebx*4]
add esp, 0x14
mov dword [esp + 0x2c], ecx
jmp 0x58dac5
add ebx, edx
sar ebx, 1
mov edi, dword [esp + eax*4 + 0x50]
lea ecx, [esp + 0x158]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x58dc28
test edi, edi
jns 0x58dc24
mov edi, ecx
jmp 0x58dc28
add edi, ecx
sar edi, 1
cmp ebx, 0xffffffff
je 0x58ddf9
cmp edi, 0xffffffff
je 0x58ddf9
push dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push dword [ebp + 8]
mov ecx, dword [esp + 0x20]
push dword [ebp + 0xc]
push edi
push ebx
call fcn.0058be80
add esp, 0x14
test eax, eax
je 0x58ddbd
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0xffffff38
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], 0xffffff38
mov dword [esp + 0x20], 0xffffff38
mov dword [esp + 0x24], 0xffffff38
mov edx, dword [eax]
lea eax, [ecx*8]
sub eax, ecx
sub edx, ecx
lea ecx, [esp + 0x584]
lea ecx, [ecx + eax*8]
call fcn.0058c0c0
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
push dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
sub edx, eax
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x584]
lea ecx, [eax + ecx*8]
call fcn.0058c0c0
add esp, 0xc
mov edx, eax
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
je 0x58dd01
mov ecx, eax
jmp 0x58dd09
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x58dd17
mov dword [esp + 0x14], ecx
jmp 0x58dd1b
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
je 0x58dd2a
test edx, edx
jne 0x58ddbd
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
test edx, edx
mov dword [eax], ebx
mov eax, dword [esp + 0x158]
cmove eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + esi*4 + 0x158], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
mov dword [esp + esi*4 + 0x50], ebx
mov dword [eax], edi
mov eax, dword [esp + 0x54]
cmove eax, edi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x54], eax
jge 0x58dd79
test ebx, ebx
js 0x58ddd0
mov eax, dword [esp + 0xc]
mov ebx, dword [eax]
lea eax, [ebx - 1]
test eax, eax
js 0x58dd9b
cmp dword [esp + eax*4 + 0x260], ecx
jne 0x58dd9b
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x58dd86
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x28]
cmp eax, ebx
jge 0x58ddd4
cmp dword [esp + eax*4 + 0x368], edx
jne 0x58ddd4
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x58dda6
jmp 0x58ddd4
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
inc esi
add eax, 4
mov dword [esp + 0xc], eax
cmp esi, ebx
jl 0x58db40
mov esi, dword [esp + 0x15c]
mov edi, dword [esp + 0x50]
jmp 0x58de05
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
add ecx, 7
and ecx, 0xfffffff8
mov edx, dword [eax + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x4c]
jle 0x58de75
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, ebx
cmp dword [edx + 0x44], 0
je 0x58de5d
push 8
call eax
mov edx, ebx
add esp, 4
mov ecx, dword [edx + 0x48]
add dword [edx + 0x50], ecx
mov ecx, dword [edx + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x54], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push ecx
mov dword [edx + 0x4c], ecx
call eax
mov ecx, ebx
add esp, 4
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [ecx + 0x44], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
add edx, dword [eax + 0x44]
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0xc], edx
cmp dword [esp + 0x158], 0
mov ecx, ebx
mov dword [ecx + 0x48], eax
jl 0x58dea9
test edi, edi
jns 0x58dea0
mov edi, dword [esp + 0x158]
jmp 0x58dea9
add edi, dword [esp + 0x158]
sar edi, 1
mov dword [edx], edi
test esi, esi
jns 0x58deb5
mov esi, dword [esp + 0x54]
jmp 0x58dec2
cmp dword [esp + 0x54], 0
jl 0x58dec2
add esi, dword [esp + 0x54]
sar esi, 1
cmp dword [esp + 0x28], 2
mov dword [edx + 4], esi
mov dword [esp + 0x10], 2
jle 0x58dfb7
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add edx, 0x30c
mov dword [esp + 0x18], edx
lea ecx, [ebx + 0x34c]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 0xfc]
mov esi, dword [edx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
mov edi, dword [ebx + eax*4 + 0x344]
sub ecx, edi
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov dword [esp + 0x34], eax
and ebx, 0x7fff
sub ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov edx, dword [esp + 0x34]
lea ecx, [eax + edx]
sub edx, eax
test ebx, ebx
cmovns edx, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + ecx*4 + 0x158]
test eax, eax
jns 0x58df5f
mov eax, dword [esp + ecx*4 + 0x50]
jmp 0x58df6b
mov esi, dword [esp + ecx*4 + 0x50]
test esi, esi
js 0x58df6f
add eax, esi
sar eax, 1
test eax, eax
js 0x58df73
cmp edx, eax
jne 0x58df7a
mov eax, edx
or eax, 0x8000
mov edx, dword [esp + 0xc]
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
inc ecx
mov edx, dword [esp + 0x18]
add edx, 4
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
jl 0x58def4
mov edx, dword [esp + 0xc]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret