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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x130329f8
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x1303de70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x1303f32c], 0
jne 0x1300b428
push 0x104
lea eax, [ebp - 0x264]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1300b0ca
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x288]
call fcn.130049f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x26c], 0
push 0
push 0x130355f8
lea ecx, [ebp - 0x288]
call fcn.1300b610
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
cmp edx, dword [0x130361cc]
je 0x1300b04b
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
add ecx, 1
push ecx
push 0x130355fc
lea ecx, [ebp - 0x288]
call fcn.1300b610
mov dword [ebp - 0x268], eax
jmp 0x1300b00f
cmp dword [ebp - 0x26c], 0
jbe 0x1300b0b8
mov edx, dword [ebp - 0x26c]
push edx
push 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x288]
call fcn.1300b7b0
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
mov dword [ebp - 0x500], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x500]
push edx
lea ecx, [ebp - 0x288]
call fcn.13004a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.130036a0
lea ecx, [ebp - 0x288]
call fcn.13005c40
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.130036a0
jmp 0x1300b0dc
mov eax, dword [ebp + 8]
mov dword [0x1303f334], eax
mov dword [0x1303f32c], 1
movzx ecx, word [0x13035600]
add ecx, 1
mov word [ebp - 0x5c], cx
movzx edx, word [0x1303565a]
add edx, 2
mov word [ebp - 0x5a], dx
movzx eax, word [0x130356b4]
add eax, 3
mov word [ebp - 0x58], ax
movzx ecx, word [0x1303570e]
add ecx, 4
mov word [ebp - 0x56], cx
movzx edx, word [0x13035768]
add edx, 5
mov word [ebp - 0x54], dx
movzx eax, word [0x130357c2]
add eax, 6
mov word [ebp - 0x52], ax
movzx ecx, word [0x1303581c]
add ecx, 7
mov word [ebp - 0x50], cx
movzx edx, word [0x13035876]
add edx, 8
mov word [ebp - 0x4e], dx
movzx eax, word [0x130358d0]
add eax, 9
mov word [ebp - 0x4c], ax
movzx ecx, word [0x1303592a]
add ecx, 0xa
mov word [ebp - 0x4a], cx
movzx edx, word [0x13035984]
add edx, 0xb
mov word [ebp - 0x48], dx
movzx eax, word [0x130359de]
add eax, 0xc
mov word [ebp - 0x46], ax
movzx ecx, word [0x13035a38]
add ecx, 0xd
mov word [ebp - 0x44], cx
movzx edx, word [0x13035a92]
add edx, 0xe
mov word [ebp - 0x42], dx
movzx eax, word [0x13035aec]
add eax, 0xf
mov word [ebp - 0x40], ax
movzx ecx, word [0x13035b46]
add ecx, 0x10
mov word [ebp - 0x3e], cx
movzx edx, word [0x13035ba0]
add edx, 0x11
mov word [ebp - 0x3c], dx
movzx eax, word [0x13035bfa]
add eax, 0x12
mov word [ebp - 0x3a], ax
movzx ecx, word [0x13035c54]
add ecx, 0x13
mov word [ebp - 0x38], cx
movzx edx, word [0x13035cae]
add edx, 0x14
mov word [ebp - 0x36], dx
movzx eax, word [0x13035d08]
add eax, 0x15
mov word [ebp - 0x34], ax
movzx ecx, word [0x13035d62]
add ecx, 0x16
mov word [ebp - 0x32], cx
movzx edx, word [0x13035dbc]
add edx, 0x17
mov word [ebp - 0x30], dx
movzx eax, word [0x13035e16]
add eax, 0x18
mov word [ebp - 0x2e], ax
movzx ecx, word [0x13035e70]
add ecx, 0x19
mov word [ebp - 0x2c], cx
movzx edx, word [0x13035eca]
add edx, 0x1a
mov word [ebp - 0x2a], dx
movzx eax, word [0x13035f24]
add eax, 0x1b
mov word [ebp - 0x28], ax
movzx ecx, word [0x13035f7e]
add ecx, 0x1c
mov word [ebp - 0x26], cx
movzx edx, word [0x13035fd8]
add edx, 0x1d
mov word [ebp - 0x24], dx
movzx eax, word [0x13036032]
add eax, 0x1e
mov word [ebp - 0x22], ax
movzx ecx, word [0x1303608c]
add ecx, 0x1f
mov word [ebp - 0x20], cx
movzx edx, word [0x130360e6]
add edx, 0x20
mov word [ebp - 0x1e], dx
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.13001650
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1303f330], eax
cmp dword [0x1303f330], 0
je 0x1300b340
mov dword [ebp - 0x490], str.Setting
lea ecx, [ebp - 0x48c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x13036110
lea edx, [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x48c]
push eax
push 0x83a
push str.AuthPort
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x1303d800], eax
mov edx, dword [0x1303d800]
push edx
mov eax, dword [0x1303f330]
add eax, 0x3cd85f
push eax
call fcn.13001090
add esp, 8
call fcn.1300bfe0
mov ecx, 0x1303f368
call fcn.1300dd90
mov ecx, 0x1303faa0
call fcn.13013a10
push 0
push 0
push 0
push 0x1300acb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ad00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ad50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ada0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300adf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ae40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ae90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300aee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300af30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1300b428
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1301b81a
mov esp, ebp
pop ebp
ret