Function at 0x503ed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x674]
sub esp, 0x674
push 0xffffffffffffffff
push 0x550896
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 0x504444
cmp dword [ebp - 0x20], ebx
je 0x50443d
test edi, edi
je 0x50443d
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 0x50442f
test edi, edi
je 0x50442f
cmp dword [ebp - 0x1c], 0
je 0x50442f
cmp dword [ebp - 0x30], 0
je 0x50442f
test eax, eax
je 0x50442f
cmp dword [ebp - 0x24], 0
je 0x50442f
push 0
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x50442f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.0050d580
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x504431
push 0x412
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.0050d580
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 0x504097
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x22c]
call fcn.00418820
mov dword [ebp - 4], 0
call fcn.0041e560
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 0x504139
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 0x50410c
nop dword [eax]
cmp ecx, edx
je 0x504139
sub ecx, 2
cmp word [ecx], si
jne 0x504100
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x504139
cmp edi, ecx
jb 0x50448a
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 0x504255
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x504255
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 0x5041c0
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x244]
call fcn.00418820
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x23c]
cmp dword [ebp + 0x254], ecx
jae 0x504270
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x504238
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50422e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50448f
push edx
push ecx
call fcn.0050b342
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 0x504142
jmp 0x5043c6
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 0x5041f4
mov byte [ebp - 0x11], 1
test bl, bl
je 0x5042cf
push dword [ebp + 8]
push 0x503d10
call dword [ebp - 0x28]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x5042e0
cmp dword [ebp - 0x2c], 0
je 0x5042e0
push dword [ebp + 8]
push 0x503e00
call dword [ebp - 0x28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x5042fd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x504365
mov eax, dword [0x594978]
test eax, eax
jne 0x504363
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x504341
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504337
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50448f
push edx
push ecx
call fcn.0050b342
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
jmp 0x50425b
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x5043a9
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50439f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50448f
push edx
push ecx
call fcn.0050b342
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 0x50440d
mov ecx, dword [ebp + 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504403
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504494
push edx
push ecx
call fcn.0050b342
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 0x504437
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 0x504452
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x50445d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x504464
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.0050b067
lea esp, [ebp + 0x674]
pop ebp
ret
call fcn.004137f0
call fcn.0050f749
call fcn.0050f749
int3