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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1302a188
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x13034c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x13035fec], 0
jne 0x1300b598
push 0x104
lea eax, [ebp - 0x264]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1300b23a
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x288]
call fcn.13004b60
mov dword [ebp - 4], 0
mov dword [ebp - 0x26c], 0
push 0
push 0x1302c5f8
lea ecx, [ebp - 0x288]
call fcn.1300b730
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
cmp edx, dword [0x1302d1cc]
je 0x1300b1bb
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
add ecx, 1
push ecx
push 0x1302c5fc
lea ecx, [ebp - 0x288]
call fcn.1300b730
mov dword [ebp - 0x268], eax
jmp 0x1300b17f
cmp dword [ebp - 0x26c], 0
jbe 0x1300b228
mov edx, dword [ebp - 0x26c]
push edx
push 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x288]
call fcn.1300b8a0
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.13004ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.13003810
lea ecx, [ebp - 0x288]
call fcn.13005de0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.13003810
jmp 0x1300b24c
mov eax, dword [ebp + 8]
mov dword [0x13035ff4], eax
mov dword [0x13035fec], 1
movzx ecx, word [0x1302c600]
add ecx, 1
mov word [ebp - 0x5c], cx
movzx edx, word [0x1302c65a]
add edx, 2
mov word [ebp - 0x5a], dx
movzx eax, word [0x1302c6b4]
add eax, 3
mov word [ebp - 0x58], ax
movzx ecx, word [0x1302c70e]
add ecx, 4
mov word [ebp - 0x56], cx
movzx edx, word [0x1302c768]
add edx, 5
mov word [ebp - 0x54], dx
movzx eax, word [0x1302c7c2]
add eax, 6
mov word [ebp - 0x52], ax
movzx ecx, word [0x1302c81c]
add ecx, 7
mov word [ebp - 0x50], cx
movzx edx, word [0x1302c876]
add edx, 8
mov word [ebp - 0x4e], dx
movzx eax, word [0x1302c8d0]
add eax, 9
mov word [ebp - 0x4c], ax
movzx ecx, word [0x1302c92a]
add ecx, 0xa
mov word [ebp - 0x4a], cx
movzx edx, word [0x1302c984]
add edx, 0xb
mov word [ebp - 0x48], dx
movzx eax, word [0x1302c9de]
add eax, 0xc
mov word [ebp - 0x46], ax
movzx ecx, word [0x1302ca38]
add ecx, 0xd
mov word [ebp - 0x44], cx
movzx edx, word [0x1302ca92]
add edx, 0xe
mov word [ebp - 0x42], dx
movzx eax, word [0x1302caec]
add eax, 0xf
mov word [ebp - 0x40], ax
movzx ecx, word [0x1302cb46]
add ecx, 0x10
mov word [ebp - 0x3e], cx
movzx edx, word [0x1302cba0]
add edx, 0x11
mov word [ebp - 0x3c], dx
movzx eax, word [0x1302cbfa]
add eax, 0x12
mov word [ebp - 0x3a], ax
movzx ecx, word [0x1302cc54]
add ecx, 0x13
mov word [ebp - 0x38], cx
movzx edx, word [0x1302ccae]
add edx, 0x14
mov word [ebp - 0x36], dx
movzx eax, word [0x1302cd08]
add eax, 0x15
mov word [ebp - 0x34], ax
movzx ecx, word [0x1302cd62]
add ecx, 0x16
mov word [ebp - 0x32], cx
movzx edx, word [0x1302cdbc]
add edx, 0x17
mov word [ebp - 0x30], dx
movzx eax, word [0x1302ce16]
add eax, 0x18
mov word [ebp - 0x2e], ax
movzx ecx, word [0x1302ce70]
add ecx, 0x19
mov word [ebp - 0x2c], cx
movzx edx, word [0x1302ceca]
add edx, 0x1a
mov word [ebp - 0x2a], dx
movzx eax, word [0x1302cf24]
add eax, 0x1b
mov word [ebp - 0x28], ax
movzx ecx, word [0x1302cf7e]
add ecx, 0x1c
mov word [ebp - 0x26], cx
movzx edx, word [0x1302cfd8]
add edx, 0x1d
mov word [ebp - 0x24], dx
movzx eax, word [0x1302d032]
add eax, 0x1e
mov word [ebp - 0x22], ax
movzx ecx, word [0x1302d08c]
add ecx, 0x1f
mov word [ebp - 0x20], cx
movzx edx, word [0x1302d0e6]
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 [0x13035ff0], eax
cmp dword [0x13035ff0], 0
je 0x1300b4b0
mov dword [ebp - 0x490], str.Setting
lea ecx, [ebp - 0x48c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x1302d110
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 [0x13034800], eax
mov edx, dword [0x13034800]
push edx
mov eax, dword [0x13035ff0]
add eax, 0x3cd85f
push eax
call fcn.13001090
add esp, 8
call fcn.1300c0c0
mov ecx, 0x13036028
call fcn.1300dda0
mov ecx, 0x130366b8
call fcn.1300f490
push 0
push 0
push 0
push 0x1300ae20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300ae70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300aec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300af10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300af60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300afb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300b000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300b050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1300b0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1300b598
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.13016f4a
mov esp, ebp
pop ebp
ret