Function at 0x10001360
Capabilities:
Create directory
Get common file path
Initialize winsock library
Set current directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x5ac
sub eax, 0
push ebx
push ebp
push esi
push edi
je 0x1000165d
dec eax
jne 0x10001682
mov eax, dword [esp + 0x5c0]
mov ebx, dword [0x10005398]
lea ecx, [esp + 0x20]
push 0x104
push ecx
mov dword [0x100054e8], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [esp + eax + 0x20]
push str.Temp
push esi
call ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
add esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
push ebx
push esi
call ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
lea eax, [esp + 0x24]
dec ecx
push eax
add esi, ecx
call fcn.10001730
add esp, 8
lea ecx, [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
mov byte [esi], 0x5c
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, dword [esp + 0x12]
push 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
and edi, 0xffff
and eax, 0xffff
push esi
lea ebx, [edx + ecx]
lea ebp, [edi + ecx]
add ecx, eax
shl eax, 8
shl ebx, 0x18
shl ebp, 0x10
or eax, edi
or ebx, ebp
shl eax, 8
or ebx, ecx
or eax, edx
xor ebx, eax
push ebx
call dword [sym.imp.MSVCRT.dll__ultoa]
add esp, 0xc
push str..dat
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100053a8
push 0x65
mov edi, dword [esp + 0x5c8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
lea edx, [esp + 0x20]
push edx
push eax
push edi
call fcn.10001840
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec esi
lea ecx, [esp + 0x20]
mov byte [esp + eax + 0x120], 0
push ecx
mov byte [esi], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea edx, [esp + 0x20]
push edx
mov byte [esi], 0x5c
call edi
test eax, eax
mov dword [0x100054ec], eax
jne 0x100014e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
mov ebp, eax
push esi
call edi
test eax, eax
mov dword [0x100054ec], eax
je 0x10001533
lea eax, [esp + 0x120]
push eax
call ebx
mov ecx, dword [0x100054ec]
push ecx
call fcn.10001000
add esp, 4
test eax, eax
je 0x100015f7
lea eax, [esp + 0x42c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100015d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5ac
ret 0xc
cmp ebp, 0xffffffff
je 0x100015f7
test ebp, ebp
je 0x10001509
mov eax, dword [0x100054e8]
lea edx, [esp + 0x120]
push 0x104
push edx
push 0x2711
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x120]
push ecx
lea eax, [esp + 0x228]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push 0x104
lea ecx, [esp + ecx + 0x22c]
push ecx
push 0x400
push ebp
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x50020
lea edx, [esp + 0x228]
push str.Library
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5ac
ret 0xc
mov ecx, 0x18
xor eax, eax
mov edi, 0x10005488
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5ac
ret 0xc
mov edx, dword [0x100054e8]
lea ecx, [esp + 0x120]
push 0x104
push ecx
push 0x2710
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x228]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x224]
push 0x50020
push str.Library
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5ac
ret 0xc
mov eax, dword [0x100054f0]
test eax, eax
je 0x1000166c
call dword [0x10005480]
mov eax, dword [0x100054ec]
test eax, eax
je 0x1000167c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5ac
ret 0xc