Function at 0x1005f830
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016e0d8
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x82c], eax
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x830], ebx
cmp eax, ebx
je 0x1005fbf5
cmp edi, ebx
je 0x1005fbf5
mov byte [edi], bl
mov byte [eax], bl
mov eax, dword [0x101a212c]
cmp eax, ebx
jne 0x1005f8ba
mov ecx, str.PSAPI.DLL
call fcn.10032000
mov dword [0x101a212c], eax
cmp eax, ebx
je 0x1005fbf5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x101a2118], ebx
jne 0x1005f8da
push str.EnumProcesses
push eax
call esi
mov dword [0x101a2118], eax
mov eax, dword [0x101a212c]
cmp dword [0x101a211c], ebx
jne 0x1005f8f4
push str.EnumProcessModules
push eax
call esi
mov dword [0x101a211c], eax
mov eax, dword [0x101a212c]
cmp dword [0x101a2120], ebx
jne 0x1005f90e
push str.GetModuleBaseNameA
push eax
call esi
mov dword [0x101a2120], eax
mov eax, dword [0x101a212c]
cmp dword [0x101a2124], ebx
jne 0x1005f928
push str.GetModuleFileNameExA
push eax
call esi
mov dword [0x101a2124], eax
mov eax, dword [0x101a212c]
cmp dword [0x101a2128], ebx
jne 0x1005f93d
push str.GetProcessImageFileNameA
push eax
call esi
mov dword [0x101a2128], eax
cmp dword [0x101a2118], ebx
je 0x1005fbdd
cmp dword [0x101a2120], ebx
je 0x1005fbdd
cmp dword [0x101a211c], ebx
je 0x1005fbdd
cmp dword [0x101a2124], ebx
je 0x1005fbdd
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x1005f97a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp ebx, 4
jbe 0x1005fbf5
cmp ebx, 0xffffffff
je 0x1005fbf5
mov eax, dword [0x101a1b0c]
cmp eax, 4
jbe 0x1005f9fb
cmp eax, ebx
jne 0x1005f9fb
mov al, byte [0x101a1b10]
test al, al
jne 0x1005f9b1
cmp byte [0x101a1d18], al
je 0x1005f9fb
test al, al
je 0x1005f9ca
mov ecx, 0x101a1b10
mov edx, dword [ebp - 0x82c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1005f9c0
cmp byte [0x101a1d18], 0
je 0x1005f9ea
test edi, edi
je 0x1005f9ea
mov ecx, 0x101a1d18
mov edx, edi
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1005f9e0
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x1005fc25
push ebx
push 0x410
call fcn.1005f650
add esp, 8
mov esi, eax
mov dword [ebp - 0x830], esi
test esi, esi
je 0x1005fbf5
lea eax, [ebp - 0x838]
push eax
push 4
lea ecx, [ebp - 0x834]
push ecx
push esi
call dword [0x101a211c]
test eax, eax
je 0x1005fb01
push 0x104
mov edx, dword [ebp - 0x82c]
push edx
mov eax, dword [ebp - 0x834]
push eax
push esi
call dword [0x101a2120]
push 0x104
push edi
mov ecx, dword [ebp - 0x834]
push ecx
push esi
call dword [0x101a2124]
cmp byte [edi], 0
je 0x1005fb93
mov dword [ebp - 0x828], 1
push 4
mov eax, str.___
mov ecx, edi
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005fa99
lea edx, [edi + 4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push edi
call sym.EncDec.dll_IsItEnvStringType
push 0x7e
push edi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x1005fb93
mov byte [ebp - 0x424], 0
push 0x3ff
push 0
lea eax, [ebp - 0x423]
push eax
call fcn.10116880
push edi
mov ecx, 0x400
lea eax, [ebp - 0x424]
call fcn.10042a30
add esp, 0x10
dec eax
cmp eax, 0x102
ja 0x1005fb93
lea ecx, [ebp - 0x424]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1005fb93
mov eax, dword [0x101a2128]
test eax, eax
je 0x1005fb93
push 0x104
push edi
push esi
call eax
cmp byte [edi], 0
je 0x1005fb93
mov dword [ebp - 0x828], 1
push edi
call sym.EncDec.dll_ConvertDeviceName
push 0x7e
push edi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x1005fb7d
mov byte [ebp - 0x824], 0
push 0x3ff
push 0
lea edx, [ebp - 0x823]
push edx
call fcn.10116880
push edi
mov ecx, 0x400
lea eax, [ebp - 0x824]
call fcn.10042a30
add esp, 0x10
dec eax
cmp eax, 2
ja 0x1005fb7d
lea eax, [ebp - 0x824]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [edi], 0
je 0x1005fb93
mov ecx, dword [ebp - 0x82c]
push ecx
mov ecx, edi
call fcn.10045a10
add esp, 4
lea edx, [ebp - 0x830]
push edx
call fcn.100673f0
cmp dword [ebp - 0x828], 0
je 0x1005fc18
mov dword [0x101a1b0c], ebx
mov ecx, dword [ebp - 0x82c]
mov edx, 0x101a1b10
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1005fbc0
mov ecx, edi
mov edx, 0x101a1d18
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1005fbd1
jmp 0x1005fc18
mov dword [0x101a2118], ebx
mov dword [0x101a2120], ebx
mov dword [0x101a211c], ebx
mov dword [0x101a2124], ebx
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1005fc25
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0xc