Function at 0x10005050
Capabilities:
Create directory
Create process on windows
Create process suspended
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100152ab
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x1001d080]
xor eax, esp
mov dword [esp + 0x610], eax
push ebx
push esi
push edi
mov eax, dword [0x1001d080]
xor eax, esp
push eax
lea eax, [esp + 0x628]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x44
xor ebx, ebx
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x2c], eax
call fcn.1000da00
xor eax, eax
add esp, 0xc
push 0x103
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x201]
mov edx, 7
push ebx
push eax
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], dx
mov byte [esp + 0x208], bl
call fcn.1000da00
add esp, 0xc
lea ecx, [esp + 0x1fc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + eax + 0x1fb], 0x5c
lea eax, [esp + eax + 0x1fb]
jne 0x10005118
mov byte [eax], bl
lea eax, [esp + 0x1fc]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea edx, [eax + 1]
jmp 0x10005140
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005140
sub eax, edx
mov edi, eax
lea eax, [esp + 0x1fc]
lea esi, [esp + 0xa0]
call fcn.10001750
mov edx, esi
push edx
mov eax, str.Skin
lea esi, [esp + 0x88]
mov dword [esp + 0x634], ebx
call fcn.10005e70
mov esi, 0x10
add esp, 4
mov dword [esp + 0x630], 0xffffffff
cmp dword [esp + 0xb4], esi
jb 0x100051a5
mov eax, dword [esp + 0xa0]
push eax
call fcn.10008c37
add esp, 4
mov edi, dword [esp + 0x84]
cmp dword [esp + 0x98], esi
jae 0x100051bc
lea edi, [esp + 0x84]
push 0x13c
lea ecx, [esp + 0xc4]
push ebx
push ecx
xor esi, esi
mov dword [esp + 0xc8], ebx
call fcn.1000da00
add esp, 0xc
lea edx, [esp + 0xbc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x100051fe
test byte [esp + 0xbc], 0x10
je 0x100051fe
mov esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, ebx
jne 0x10005229
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x10005221
lea eax, [esp + 0x84]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x103
lea eax, [esp + 0x519]
push ebx
push eax
mov byte [esp + 0x520], bl
call fcn.1000da00
add esp, 0xc
lea ecx, [esp + 0x1fc]
push ecx
push str._sMirclClient.dat
lea edx, [esp + 0x51c]
push 0x104
push edx
call fcn.10009556
push 0x103
lea eax, [esp + 0x319]
push ebx
push eax
mov byte [esp + 0x320], bl
call fcn.1000da00
add esp, 0x1c
lea ecx, [esp + 0x1fc]
push ecx
push str._sMirclClient.dll
lea edx, [esp + 0x30c]
push 0x104
push edx
call fcn.10009556
push 0x103
lea eax, [esp + 0x421]
push ebx
push eax
mov byte [esp + 0x428], bl
call fcn.1000da00
add esp, 0x1c
lea ecx, [esp + 0x1fc]
push ecx
push str._sGamePlug.dll
lea edx, [esp + 0x414]
push 0x104
push edx
call fcn.10009556
mov eax, dword [0x1001f2e8]
add esp, 0x10
cmp eax, ebx
jne 0x100052ee
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x204]
push ecx
push ebx
push 4
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x538]
push edx
call eax
test eax, eax
je 0x10005355
lea ecx, [esp + 0x34]
push 1
lea eax, [esp + 0x308]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
call fcn.10006510
add esp, 8
test eax, eax
je 0x10005355
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x10005359
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [esp + 0x98], 0x10
mov esi, eax
jb 0x10005395
mov ecx, dword [esp + 0x84]
push ecx
call fcn.10008c37
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x628]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, esp
call fcn.10008c28
mov esp, ebp
pop ebp
ret 4