Function at 0x13001600
Capabilities:
Create thread
Get common file path
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1302f02b
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x13043610]
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
mov dword [ebp - 0x4a4], 0
cmp dword [0x130447cc], 0
jne 0x13001ba8
push 0x104
lea eax, [ebp - 0x45c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x13001752
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x474]
call fcn.13002340
mov dword [ebp - 4], 0
mov dword [ebp - 0x490], 0
push 0
push 0x13031238
lea ecx, [ebp - 0x474]
call fcn.13002be0
mov dword [ebp - 0x494], eax
cmp dword [ebp - 0x494], 0xffffffff
je 0x130016d3
mov edx, dword [ebp - 0x494]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x490]
add eax, 1
push eax
push 0x1303123c
lea ecx, [ebp - 0x474]
call fcn.13002be0
mov dword [ebp - 0x494], eax
jmp 0x1300169c
cmp dword [ebp - 0x490], 0
jbe 0x13001740
mov ecx, dword [ebp - 0x490]
push ecx
push 0
lea edx, [ebp - 0x48c]
push edx
lea ecx, [ebp - 0x474]
call fcn.13002ce0
mov dword [ebp - 0x498], eax
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x474]
call fcn.13002750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48c]
call fcn.130025c0
lea ecx, [ebp - 0x474]
call fcn.13002b90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call fcn.130025c0
jmp 0x13001764
mov edx, dword [ebp + 8]
mov dword [0x130447d4], edx
mov dword [0x130447cc], 1
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ecx + 0x13031240]
add edx, 1
mov word [ebp - 0x54], dx
mov eax, 2
shl eax, 0
movzx ecx, word [eax + 0x13031298]
add ecx, 2
mov word [ebp - 0x52], cx
mov edx, 2
shl edx, 1
movzx eax, word [edx + 0x130312f0]
add eax, 3
mov word [ebp - 0x50], ax
mov ecx, 2
imul edx, ecx, 3
movzx eax, word [edx + 0x13031348]
add eax, 4
mov word [ebp - 0x4e], ax
mov ecx, 2
shl ecx, 2
movzx edx, word [ecx + 0x130313a0]
add edx, 5
mov word [ebp - 0x4c], dx
mov eax, 2
imul ecx, eax, 5
movzx edx, word [ecx + 0x130313f8]
add edx, 6
mov word [ebp - 0x4a], dx
mov eax, 2
imul ecx, eax, 6
movzx edx, word [ecx + 0x13031450]
add edx, 7
mov word [ebp - 0x48], dx
mov eax, 2
imul ecx, eax, 7
movzx edx, word [ecx + 0x130314a8]
add edx, 8
mov word [ebp - 0x46], dx
mov eax, 2
shl eax, 3
movzx ecx, word [eax + 0x13031500]
add ecx, 9
mov word [ebp - 0x44], cx
mov edx, 2
imul eax, edx, 9
movzx ecx, word [eax + 0x13031558]
add ecx, 0xa
mov word [ebp - 0x42], cx
mov edx, 2
imul eax, edx, 0xa
movzx ecx, word [eax + 0x130315b0]
add ecx, 0xb
mov word [ebp - 0x40], cx
mov edx, 2
imul eax, edx, 0xb
movzx ecx, word [eax + 0x13031608]
add ecx, 0xc
mov word [ebp - 0x3e], cx
mov edx, 2
imul eax, edx, 0xc
movzx ecx, word [eax + 0x13031660]
add ecx, 0xd
mov word [ebp - 0x3c], cx
mov edx, 2
imul eax, edx, 0xd
movzx ecx, word [eax + 0x130316b8]
add ecx, 0xe
mov word [ebp - 0x3a], cx
mov edx, 2
imul eax, edx, 0xe
movzx ecx, word [eax + 0x13031710]
add ecx, 0xf
mov word [ebp - 0x38], cx
mov edx, 2
imul eax, edx, 0xf
movzx ecx, word [eax + 0x13031768]
add ecx, 0x10
mov word [ebp - 0x36], cx
mov edx, 2
shl edx, 4
movzx eax, word [edx + 0x130317c0]
add eax, 0x11
mov word [ebp - 0x34], ax
mov ecx, 2
imul edx, ecx, 0x11
movzx eax, word [edx + 0x13031818]
add eax, 0x12
mov word [ebp - 0x32], ax
mov ecx, 2
imul edx, ecx, 0x12
movzx eax, word [edx + 0x13031870]
add eax, 0x13
mov word [ebp - 0x30], ax
mov ecx, 2
imul edx, ecx, 0x13
movzx eax, word [edx + 0x130318c8]
add eax, 0x14
mov word [ebp - 0x2e], ax
mov ecx, 2
imul edx, ecx, 0x14
movzx eax, word [edx + 0x13031920]
add eax, 0x15
mov word [ebp - 0x2c], ax
mov ecx, 2
imul edx, ecx, 0x15
movzx eax, word [edx + 0x13031978]
add eax, 0x16
mov word [ebp - 0x2a], ax
mov ecx, 2
imul edx, ecx, 0x16
movzx eax, word [edx + 0x130319d0]
add eax, 0x17
mov word [ebp - 0x28], ax
mov ecx, 2
imul edx, ecx, 0x17
movzx eax, word [edx + 0x13031a28]
add eax, 0x18
mov word [ebp - 0x26], ax
mov ecx, 2
imul edx, ecx, 0x18
movzx eax, word [edx + 0x13031a80]
add eax, 0x19
mov word [ebp - 0x24], ax
mov ecx, 2
imul edx, ecx, 0x19
movzx eax, word [edx + 0x13031ad8]
add eax, 0x1a
mov word [ebp - 0x22], ax
mov ecx, 2
imul edx, ecx, 0x1a
movzx eax, word [edx + 0x13031b30]
add eax, 0x1b
mov word [ebp - 0x20], ax
mov ecx, 2
imul edx, ecx, 0x1b
movzx eax, word [edx + 0x13031b88]
add eax, 0x1c
mov word [ebp - 0x1e], ax
mov ecx, 2
imul edx, ecx, 0x1c
movzx eax, word [edx + 0x13031be0]
add eax, 0x1d
mov word [ebp - 0x1c], ax
mov ecx, 2
imul edx, ecx, 0x1d
movzx eax, word [edx + 0x13031c38]
add eax, 0x1e
mov word [ebp - 0x1a], ax
mov ecx, 2
imul edx, ecx, 0x1e
movzx eax, word [edx + 0x13031c90]
add eax, 0x1f
mov word [ebp - 0x18], ax
mov ecx, 2
imul edx, ecx, 0x1f
movzx eax, word [edx + str.Engine.dll]
add eax, 0x20
mov word [ebp - 0x16], ax
xor ecx, ecx
mov word [ebp - 0x14], cx
lea edx, [ebp - 0x54]
push edx
call fcn.130028f0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x130447d0], eax
cmp dword [0x130447d0], 0
je 0x13001aca
mov dword [ebp - 0x4a0], str.Setting
lea eax, [ebp - 0x254]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x13031d50
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x254]
push edx
push 0x83a
push str.AuthPort
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x1304310c], eax
mov ecx, dword [0x1304310c]
push ecx
mov edx, dword [0x130447d0]
add edx, 0x3cd85f
push edx
call fcn.1300ba10
add esp, 8
call fcn.130011b0
mov ecx, 0x13044868
call fcn.1300cef0
push 0
push 0
push 0
push 0x13001ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13001f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13001f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13001fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13002000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13002050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x130020a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x130020f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x13002140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x13001ba8
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.130133df
mov esp, ebp
pop ebp
ret