Function at 0x1001d530
Capabilities:
Create directory
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069a58
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10086310], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
mov dword [0x10086314], eax
call fcn.1000bce0
xor eax, eax
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [str.Tibia.dll]
mov dword [ebp - 0x40], eax
mov eax, dword [0x10079ce4]
mov dword [ebp - 0x3c], eax
movzx eax, byte [0x10079ce8]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [str.game_]
mov dword [ebp - 0x28], eax
movzx eax, byte [0x10079168]
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp - 0x40]
mov dword [ebp - 0x90], ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x90]
call fcn.100090d0
call fcn.1000bbd0
add esp, 0x18
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp ecx, 0x10
jb 0x1001d64d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d643
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1001d688
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d67e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
test bl, bl
je 0x1001d709
xor eax, eax
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.10042cf2
mov edi, eax
mov dword [ebp - 0x28], eax
mov ecx, 0xc
mov dword [ebp - 0x18], 0x33
mov esi, str.Tibia_client_was_unable_to_load_Tibia.dll_properly_
mov dword [ebp - 0x14], 0x3f
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, 0x10086100
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x33], 0
lea eax, [ebp - 0x28]
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001d709
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d6ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
push 0x10086180
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1001d799
xor eax, eax
push 0x30
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.10042cf2
mov edi, eax
mov dword [ebp - 0x28], eax
mov ecx, 0xb
mov dword [ebp - 0x18], 0x2e
mov esi, str.Tibia_client_was_unable_to_initialize_winsock_
mov dword [ebp - 0x14], 0x2f
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, 0x10086100
movsw word es:[edi], word [esi]
mov byte [eax + 0x2e], 0
lea eax, [ebp - 0x28]
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001d799
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d78f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x10079d50
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001d9e5
call esi
cmp eax, 0xb7
je 0x1001d9e5
xor eax, eax
mov dword [ebp - 0x30], 0xb
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [str._directory_]
mov dword [ebp - 0x40], eax
mov eax, dword [0x10079d58]
mov dword [ebp - 0x3c], eax
movzx eax, word [0x10079d5c]
mov word [ebp - 0x38], ax
movzx eax, byte [0x10079d5e]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
movzx eax, word [0x10079d50]
mov word [ebp - 0x28], ax
movzx eax, byte [0x10079d52]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
xor eax, eax
mov byte [ebp - 4], 3
push 0x20
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
call fcn.10042cf2
mov ecx, 6
mov dword [ebp - 0x5c], eax
mov esi, 0x10079d60
mov dword [ebp - 0x4c], 0x1b
mov edi, eax
mov dword [ebp - 0x48], 0x1f
rep movsd dword es:[edi], dword [esi]
add esp, 4
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x1b], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
call fcn.100090d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x74]
call fcn.100090d0
lea eax, [ebp - 0x74]
mov ecx, 0x10086100
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x1001d8f9
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d8ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x1001d934
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d92a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x1001d96c
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d962
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001d9a4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d99a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1001d9df
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d9d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x10078d38
call ebx
test eax, eax
jne 0x1001dc1e
call esi
cmp eax, 0xb7
je 0x1001dc1e
xor eax, eax
mov dword [ebp - 0x30], 0xb
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [str._directory_]
mov dword [ebp - 0x40], eax
mov eax, dword [0x10079d58]
mov dword [ebp - 0x3c], eax
movzx eax, word [0x10079d5c]
mov word [ebp - 0x38], ax
movzx eax, byte [0x10079d5e]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
movzx eax, word [0x10078d38]
mov word [ebp - 0x28], ax
movzx eax, byte [0x10078d3a]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
xor eax, eax
mov byte [ebp - 4], 7
push 0x20
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
call fcn.10042cf2
mov ecx, 6
mov dword [ebp - 0x5c], eax
mov esi, str.Tibia_was_unable_to_create
mov dword [ebp - 0x4c], 0x1a
mov edi, eax
mov dword [ebp - 0x48], 0x1f
rep movsd dword es:[edi], dword [esi]
add esp, 4
movsw word es:[edi], word [esi]
mov byte [eax + 0x1a], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x74]
call fcn.100090d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
call fcn.100090d0
lea eax, [ebp - 0x8c]
mov ecx, 0x10086100
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x1001db3b
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001db31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x1001db73
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001db69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x1001dbab
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001dba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001dbe3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001dbd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1001dc1e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001dc14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf3
push ecx
push edx
call fcn.10042d22
add esp, 8
call fcn.1001f000
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0xc
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__D_OICI_GA___AU__D_OICI_GA___BA_
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
push dword [ebp - 0x30]
push 4
push dword [0x10086310]
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x1001dccd
push 0x30
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.10042cf2
mov edi, eax
mov dword [ebp - 0x28], eax
add esp, 4
mov dword [ebp - 0x18], 0x28
mov ecx, 0xa
mov dword [ebp - 0x14], 0x2f
mov esi, str.Initializing_security_attributes_failed_
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 0x28], 0
mov ecx, 0x10086100
lea eax, [ebp - 0x28]
push eax
call fcn.10005a00
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001dccd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001dcc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001dcf8
push ecx
push edx
call fcn.10042d22
add esp, 8
call fcn.1001f360
call fcn.1001df80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
call fcn.1004fd3c
call fcn.1004fd3c
int3