Function at 0x503f20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x674]
sub esp, 0x674
push 0xffffffffffffffff
push 0x5508c6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp + 0x670], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x67c]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x684]
push str.Kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [0x594978], 0
mov byte [ebp - 0x11], bl
call esi
push str.user32.dll
mov dword [ebp - 0x10], eax
call esi
push str.Psapi.dll
mov dword [ebp - 0x20], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x504494
cmp dword [ebp - 0x20], ebx
je 0x50448d
test edi, edi
je 0x50448d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x555684
push edi
mov ebx, eax
call esi
push str.Process32FirstW
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.Process32NextW
push dword [ebp - 0x10]
mov edi, eax
call esi
push str.GetModuleFileNameExW
push dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
call esi
push str.EnumWindows
push dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x50447f
test edi, edi
je 0x50447f
cmp dword [ebp - 0x1c], 0
je 0x50447f
cmp dword [ebp - 0x30], 0
je 0x50447f
test eax, eax
je 0x50447f
cmp dword [ebp - 0x24], 0
je 0x50447f
push 0
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x50447f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x504481
push 0x412
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [ebp + 0x25c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp + 0x23c], 0
lea ecx, [ebp + 0x25c]
mov dword [ebp + 0x240], 0
mov dword [ebp + 0x23c], 0
lea edx, [ecx + 2]
mov dword [ebp + 0x240], 7
mov word [ebp + 0x22c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5040e7
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x22c]
call fcn.00418830
mov dword [ebp - 4], 0
call fcn.0041e570
mov ebx, dword [ebp + 0x240]
lea edx, [ebp + 0x22c]
mov edi, dword [ebp + 0x23c]
cmp ebx, 8
movzx esi, ax
cmovae edx, dword [ebp + 0x22c]
test edi, edi
je 0x504189
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], si
lea ecx, [edx + ecx*2]
je 0x50415c
nop dword [eax]
cmp ecx, edx
je 0x504189
sub ecx, 2
cmp word [ecx], si
jne 0x504150
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x504189
cmp edi, ecx
jb 0x5044da
cmp ebx, 8
mov dword [ebp + 0x23c], ecx
lea eax, [ebp + 0x22c]
cmovae eax, dword [ebp + 0x22c]
xor edx, edx
mov word [eax + ecx*2], dx
mov bl, byte [ebp + 0x680]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x34]
call fcn.004178b0
add esp, 8
test al, al
je 0x5042a5
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x5042a5
push 0x208
lea eax, [ebp + 0x25c]
push eax
push 0
push esi
call dword [ebp - 0x24]
xor eax, eax
mov dword [ebp + 0x254], 0
lea ecx, [ebp + 0x25c]
mov dword [ebp + 0x258], 0
mov dword [ebp + 0x254], 0
lea edx, [ecx + 2]
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504210
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x244]
call fcn.00418830
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x23c]
cmp dword [ebp + 0x254], ecx
jae 0x5042c0
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x504288
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50427e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5044df
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
push edi
call dword [ebp - 0x30]
test eax, eax
jne 0x504192
jmp 0x504416
cmp dword [ebp + 0x258], 8
lea eax, [ebp + 0x244]
mov dword [ebp + 0x254], ecx
cmovae eax, dword [ebp + 0x244]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x244]
push eax
call fcn.00417880
add esp, 8
test al, al
je 0x504244
mov byte [ebp - 0x11], 1
test bl, bl
je 0x50431f
push dword [ebp + 8]
push 0x503d60
call dword [ebp - 0x28]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x504330
cmp dword [ebp - 0x2c], 0
je 0x504330
push dword [ebp + 8]
push 0x503e50
call dword [ebp - 0x28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x50434d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5043b5
mov eax, dword [0x594978]
test eax, eax
jne 0x5043b3
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x504391
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504387
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5044df
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
jmp 0x5042ab
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x5043f9
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5043ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5044df
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x240]
cmp edx, 8
jb 0x50445d
mov ecx, dword [ebp + 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5044e4
push edx
push ecx
call fcn.0050b392
add esp, 8
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp + 0x23c], 0
mov dword [ebp + 0x240], 7
mov word [ebp + 0x22c], ax
jmp 0x504487
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5044a2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x5044ad
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x5044b4
push ebx
call esi
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x670]
xor ecx, ebp
call fcn.0050b0b7
lea esp, [ebp + 0x674]
pop ebp
ret
call fcn.004137f0
call fcn.0050f799
call fcn.0050f799
int3