Function at 0x4e77c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.004d7650
push ebx
mov ebx, dword [edx + 0x504]
xor eax, eax
push esi
mov esi, dword [edx + 0x510]
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], ebx
push edi
test ebx, ebx
jle 0x4e7840
mov eax, 0xffffff38
lea edi, [esp + 0x158]
mov ecx, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x368]
mov ecx, ebx
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x4e7840
mov eax, 1
lea edi, [esp + 0x260]
mov ecx, ebx
rep stosd dword es:[edi], eax
or eax, 0xffffffff
lea edi, [esp + 0x470]
mov ecx, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x4e7869
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x508]
lea ecx, [esp + 0x57c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push 0
call fcn.004e6350
add esp, 0x14
jmp 0x4e78c3
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4e7d9a
lea edi, [esp + 0x578]
xor ebx, ebx
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.004e6350
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x4e7883
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4e7d98
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xffffff38
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x584]
call fcn.004e6090
mov eax, dword [esp + 0x1c]
mov esi, 2
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x158], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x15c], edi
cmp ebx, esi
jle 0x4e7bdd
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x210]
mov dword [esp + 0x1c], 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 + 0xc], ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x4e7bb4
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edi
mov dword [esp + ecx*4 + 0x470], eax
mov edi, dword [edx + ecx*4 + 0x344]
mov dword [esp + 0x24], edi
mov edi, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x28], edi
mov edi, dword [esp + ecx*4 + 0x158]
test edi, edi
jns 0x4e79bb
lea edx, [esp + 0x50]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
jmp 0x4e79cd
lea ecx, [esp + ecx*4 + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x4e79cd
add edi, ecx
sar edi, 1
lea ecx, [eax*4]
lea eax, [esp + 0x158]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x4e79f1
mov eax, dword [esp + ecx + 0x50]
jmp 0x4e79fd
mov ecx, dword [esp + ecx + 0x50]
test ecx, ecx
js 0x4e7a01
add eax, ecx
sar eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0xffffffff
je 0x4e7bd5
cmp eax, 0xffffffff
je 0x4e7bd5
mov ecx, dword [esp + 0x24]
push edx
push dword [ebp + 8]
mov edx, dword [esp + 0x30]
push dword [ebp + 0xc]
push eax
push edi
call fcn.004e5e70
add esp, 0x14
test eax, eax
je 0x4e7b9d
push dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0xffffff38
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0xffffff38
mov dword [esp + 0x38], 0xffffff38
mov dword [esp + 0x30], 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.004e6090
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
push dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
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.004e6090
mov ecx, eax
add esp, 0xc
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
je 0x4e7adb
mov edx, eax
jmp 0x4e7ae3
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x4e7af5
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
jmp 0x4e7af9
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
je 0x4e7b0b
cmp dword [esp + 0x38], 0
jne 0x4e7b9d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0xc], 0
mov dword [eax], edi
mov eax, dword [esp + 0x158]
cmove eax, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x48]
mov dword [esp + esi*4 + 0x158], edx
mov edx, dword [esp + 0x4c]
cmp edx, 1
mov dword [esp + esi*4 + 0x50], edi
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
cmove eax, ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
jge 0x4e7b59
test edi, edi
js 0x4e7bb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [ecx - 1]
test eax, eax
js 0x4e7b7b
cmp dword [esp + eax*4 + 0x260], edx
jne 0x4e7b7b
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x4e7b66
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x4e7bb0
mov ecx, dword [esp + 0xc]
cmp dword [esp + eax*4 + 0x368], ecx
jne 0x4e7bb0
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x4e7b86
jmp 0x4e7bb0
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc esi
add eax, 4
mov dword [esp + 0x1c], eax
cmp esi, ebx
jl 0x4e7940
mov edi, dword [esp + 0x15c]
mov esi, dword [esp + 0x50]
jmp 0x4e7be1
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
lea ecx, [ebx*4 + 7]
and ecx, 0xfffffff8
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x48]
add eax, ecx
cmp eax, dword [edx + 0x4c]
jle 0x4e7c4b
cmp dword [edx + 0x44], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
je 0x4e7c30
push 8
call eax
mov edx, dword [esp + 0x38]
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 + 0xc]
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 edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], 0
mov eax, dword [edx + 0x48]
mov edx, dword [edx + 0x44]
add edx, eax
add eax, ecx
cmp dword [esp + 0x158], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [ecx + 0x48], eax
jl 0x4e7c80
test esi, esi
jns 0x4e7c77
mov esi, dword [esp + 0x158]
jmp 0x4e7c80
add esi, dword [esp + 0x158]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x4e7c8c
mov edi, dword [esp + 0x54]
jmp 0x4e7c99
cmp dword [esp + 0x54], 0
jl 0x4e7c99
add edi, dword [esp + 0x54]
sar edi, 1
mov dword [edx + 4], edi
mov dword [esp + 0x28], 2
cmp ebx, 2
jle 0x4e7d9a
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, 0x30c
mov dword [esp + 0x24], ecx
lea eax, [ebx + 0x34c]
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xfc]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + eax*4 + 0x344]
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov ecx, dword [ecx]
and ebx, 0x7fff
sub ebx, eax
mov dword [esp + 0xc], eax
mov eax, ebx
sub ecx, edi
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0xc]
test ebx, ebx
jns 0x4e7d26
sub eax, ecx
jmp 0x4e7d28
add eax, ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + edx*4 + 0x158]
test ecx, ecx
jns 0x4e7d3d
mov ecx, dword [esp + edx*4 + 0x50]
jmp 0x4e7d49
mov esi, dword [esp + edx*4 + 0x50]
test esi, esi
js 0x4e7d49
add ecx, esi
sar ecx, 1
test ecx, ecx
js 0x4e7d5b
cmp eax, ecx
je 0x4e7d5b
mov eax, dword [esp + 0x30]
mov dword [eax + edx*4 - 8], ecx
jmp 0x4e7d68
mov ecx, dword [esp + 0x30]
or eax, 0x8000
mov dword [ecx + edx*4 - 8], eax
mov ecx, dword [esp + 0x24]
inc edx
add dword [esp + 0x10], 4
add ecx, 4
cmp edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
jl 0x4e7cd0
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