Function at 0x1005e850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x207
lea eax, [esp + 0x23d]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x244], bl
call fcn.1012e060
add esp, 0xc
push 0x207
lea ecx, [esp + 0x445]
push ebx
push ecx
mov byte [esp + 0x44c], bl
call fcn.1012e060
add esp, 0xc
push 0x207
lea edx, [esp + 0x35]
push ebx
push edx
mov byte [esp + 0x3c], bl
call fcn.1012e060
add esp, 0xc
push 0x207
lea eax, [esp + 0x64d]
push ebx
push eax
mov byte [esp + 0x654], bl
call fcn.1012e060
add esp, 0xc
mov ecx, edi
call fcn.1006ecd0
test eax, eax
jne 0x1005e907
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [esp + 0x23c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x208
lea ecx, [esp + 0x64c]
lea edx, [esp + 0x23c]
call fcn.1005f370
add esp, 4
test eax, eax
je 0x1005e950
lea edx, [esp + 0x648]
push edx
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x440]
lea edx, [esp + 0x238]
call fcn.10060880
lea ecx, [esp + 0x440]
push ebx
push ecx
call fcn.100612a0
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x3c]
push str._sUNREGX.EXE
push eax
call fcn.10127dc0
add esp, 0x14
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x38]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x1005e9e6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10156858
lea ecx, [esp + 0x34]
push ecx
call esi
push edi
lea edx, [esp + 0x34]
push edx
call esi
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push 1
xor ecx, ecx
lea edx, [esp + 0x44]
call fcn.10063a90
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x2c], eax
cmp eax, 0x20
jbe 0x1005eab4
push str.DllUnregisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x1005eaa2
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0x1005e830
mov edi, 0x1e
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
call fcn.10127f7d
add esp, 0xc
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x1005ea53
call esi
jmp 0x1005ea92
cmp dword [esp + 0x1c], ebx
jne 0x1005ea70
lea esp, [esp]
mov esi, 5
call fcn.1005a8b0
cmp dword [esp + 0x1c], ebx
je 0x1005ea60
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], ebx
jne 0x1005ea8e
push 0x3e8
call esi
sub edi, 1
jne 0x1005ea76
cmp dword [esp + 0x18], ebx
je 0x1005ea9e
mov eax, dword [esp + 0x28]
cmp eax, ebx
jl 0x1005ea9e
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.100733a0
mov ecx, dword [esp + 0x854]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret