Function at 0x599146
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0x6ca700
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
push 0x104
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00599096
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x5991fa
mov eax, dword [ebp - 0x14]
push eax
call fcn.005990f6
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + eax]
je 0x5991fa
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + eax]
je 0x5991fa
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x14]
add eax, 0x20a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0
push 0
push 0
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5992a5
jmp 0x59937a
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5992d3
jmp 0x59937a
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp - 0x3c]
test eax, eax
je 0x5992fe
cmp dword [ebp - 0x28], 0
jbe 0x5992fe
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
jmp 0x599302
jmp 0x59937a
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x2c]
jne 0x59930e
jmp 0x59937a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], 0
jmp 0x599328
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x80
jge 0x59934a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x59931f
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x599365
jmp 0x59937a
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x54]
push edx
lea eax, [ebp - 0x48]
push eax
call dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]