Function at 0x1301b2e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1310e7df
push eax
mov eax, 0x83b0
mov dword fs:[0], esp
call fcn.13031f00
push ebx
push esi
push edi
mov dword [esp + 0x50], ecx
xor ebx, ebx
mov dword [esp + 0x83c4], ebx
jmp 0x1301b321
mov esi, 7
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov byte [esp + 0x83c4], 2
mov eax, dword [esp + 0x83d0]
mov edi, 8
cmp dword [esp + 0x83e4], edi
jae 0x1301b357
lea eax, [esp + 0x83d0]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.1300a7a0
mov byte [esp + 0x83c4], 2
cmp dword [esp + 0x48], edi
jb 0x1301b381
mov ecx, dword [esp + 0x34]
push ecx
call fcn.13030fdc
add esp, 4
push 0x206
lea edx, [esp + 0x1c2]
push ebx
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov word [esp + 0x1c8], bx
call fcn.130309b0
add esp, 0xc
lea eax, [esp + 0x1bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x13111df4
lea ecx, [esp + 0x1c0]
push ecx
call esi
cmp dword [esp + 0x6c], edi
mov eax, dword [esp + 0x58]
jae 0x1301b3e2
lea eax, [esp + 0x58]
push ebp
push eax
lea edx, [esp + 0x1c4]
push edx
call esi
lea eax, [esp + 0x1c0]
push eax
push ebx
push 0x13111df8
push str.IPorDomainForAuth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0x30], ebx
mov ebp, 0xf
jle 0x1301b8cb
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x120]
mov eax, edx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x154], edx
mov dword [esp + 0xc4], eax
mov dword [esp + 0x50], ecx
jmp 0x1301b450
push 1
push 3
lea ecx, [esp + 0xd4]
call fcn.130093a0
mov byte [esp + 0x83c8], 4
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0xd8]
push str.Auth_
push eax
call fcn.130091b0
add esp, 8
mov ecx, eax
call fcn.1301e6a0
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x83c8], 5
mov dword [esp + 0x90], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
mov byte [esp + 0x83c8], 6
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xb8], bl
mov byte [esp + 0x83c8], 7
push 0x3ffa
lea ecx, [esp + 0x43ca]
push ebx
push ecx
mov word [esp + 0x43d0], bx
call fcn.130309b0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xd0]
call fcn.13004e20
mov byte [esp + 0x83c8], 8
cmp dword [eax + 0x18], edi
jb 0x1301b525
mov eax, dword [eax + 4]
jmp 0x1301b528
add eax, 4
lea ecx, [esp + 0x1c0]
push ecx
push 0x1ffe
lea edx, [esp + 0x43cc]
push edx
push ebx
push str.Address1
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov byte [esp + 0x83c8], 7
cmp dword [esp + 0x4c], edi
jb 0x1301b567
mov eax, dword [esp + 0x38]
push eax
call fcn.13030fdc
add esp, 4
cmp esi, ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x1301b629
xor edi, edi
cmp word [esp + edi*2 + 0x43c4], bx
je 0x1301b61d
mov cl, byte [esp + edi*2 + 0x43c4]
mov ebp, dword [esp + 0x78]
mov byte [esp + 0xbc], cl
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x10
mov eax, ebp
jae 0x1301b5b4
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
lea esi, [edx + eax]
cmp esi, ebx
je 0x1301b5e2
cmp ecx, 0x10
mov eax, ebp
jae 0x1301b5cd
lea eax, [esp + 0x78]
cmp eax, esi
ja 0x1301b5e2
cmp ecx, 0x10
mov eax, ebp
jae 0x1301b5dc
lea eax, [esp + 0x78]
add eax, edx
cmp esi, eax
jbe 0x1301b5e7
call fcn.130311e1
mov edx, dword [esp + 0xbc]
push edx
push esi
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x84]
call fcn.1301a450
add edi, 1
cmp edi, 0x104
mov ebp, 0xf
jl 0x1301b582
mov dword [esp + 0x90], ebx
mov edi, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xd0]
call fcn.13004e20
mov byte [esp + 0x83c8], 9
cmp dword [eax + 0x18], edi
jb 0x1301b64c
mov eax, dword [eax + 4]
jmp 0x1301b64f
add eax, 4
lea edx, [esp + 0x1c0]
push edx
push 0x1ffe
lea ecx, [esp + 0x43cc]
push ecx
push ebx
push str.Address2
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov byte [esp + 0x83c8], 7
cmp dword [esp + 0x2c], edi
jb 0x1301b68e
mov edx, dword [esp + 0x18]
push edx
call fcn.13030fdc
add esp, 4
cmp esi, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
je 0x1301b75f
xor edi, edi
lea esp, [esp]
cmp word [esp + edi*2 + 0x43c4], bx
je 0x1301b750
mov al, byte [esp + edi*2 + 0x43c4]
mov ecx, dword [esp + 0xb0]
cmp ecx, 0x10
mov ebp, dword [esp + 0x9c]
mov byte [esp + 0xc0], al
mov eax, ebp
jae 0x1301b6e8
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0xac]
lea esi, [edx + eax]
cmp esi, ebx
je 0x1301b71c
cmp ecx, 0x10
mov eax, ebp
jae 0x1301b704
lea eax, [esp + 0x9c]
cmp eax, esi
ja 0x1301b71c
cmp ecx, 0x10
mov eax, ebp
jae 0x1301b716
lea eax, [esp + 0x9c]
add edx, eax
cmp esi, edx
jbe 0x1301b721
call fcn.130311e1
mov ecx, dword [esp + 0xc0]
push ecx
lea eax, [esp + 0x9c]
push esi
push eax
lea edx, [esp + 0x1bc]
push edx
mov ecx, eax
call fcn.1301a450
add edi, 1
cmp edi, 0x104
jl 0x1301b6b0
mov ebp, 0xf
mov dword [esp + 0xb4], ebx
lea edi, [ebp - 7]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x74]
push eax
add ecx, 0x1c
call fcn.1301f4b0
mov byte [esp + 0x83c8], 4
lea ecx, [esp + 0x74]
call fcn.1301c510
mov byte [esp + 0x83c8], 2
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xcc], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [esp + 0x83c8], 0xa
mov dword [esp + 0xd8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [esp + 0x83c8], 0xc
test byte [esp + 0x118], 1
je 0x1301b7d5
mov eax, dword [esp + 0xe8]
mov eax, dword [eax]
push eax
call fcn.13030fdc
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword [ecx], ebx
mov edx, dword [esp + 0xf8]
mov dword [edx], ebx
mov eax, dword [esp + 0x108]
mov dword [eax], ebx
mov ecx, dword [esp + 0xec]
mov dword [ecx], ebx
mov edx, dword [esp + 0xfc]
mov dword [edx], ebx
mov eax, dword [esp + 0x10c]
mov dword [eax], ebx
and dword [esp + 0x118], 0xfffffffe
mov dword [esp + 0x114], ebx
mov byte [esp + 0x83c8], 0xa
lea ecx, [esp + 0xd8]
call fcn.13003440
mov byte [esp + 0x83c8], 2
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xcc], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x83c8], 0xd
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xd4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x83c8], 2
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0xcc], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x83c8], 2
lea ecx, [esp + 0x120]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1302f0be
mov eax, dword [esp + 0x34]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0xc8]
mov dword [esp + 0x30], eax
jl 0x1301b450
push 0x3ffa
lea edx, [esp + 0x3ce]
push ebx
push edx
mov word [esp + 0x3d4], bx
call fcn.130309b0
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
push 0x1ffe
lea ecx, [esp + 0x3d0]
push ecx
push ebx
push str.IpPortUrlList
push str.IPorDomainForAuth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1301bd5c
mov esi, 7
lea eax, [esp + 0x3c8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1301b933
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3cc]
push edx
lea ecx, [esp + 0x1c]
call fcn.13004460
mov byte [esp + 0x83c8], 0x10
push 1
push 3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xd8]
call fcn.1301eb40
mov byte [esp + 0x83c8], 0x12
cmp dword [esp + 0x2c], edi
jb 0x1301b98c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x83c8], 0x13
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.13008df0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
add esp, 8
neg dl
sbb edx, edx
not edx
test ecx, edx
je 0x1301bc22
nop
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x83c8], 0x14
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x83c8], 0x16
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1301a920
add esp, 8
mov byte [esp + 0x83c8], 0x17
push 7
push ebx
push str.http:__
lea ecx, [esp + 0x20]
call fcn.1300ac50
test eax, eax
jne 0x1301baa7
push 0xffffffffffffffff
push 7
lea edx, [esp + 0x19c]
push edx
lea ecx, [esp + 0x20]
call fcn.1300cb90
mov byte [esp + 0x83c8], 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.13004980
mov byte [esp + 0x83c8], 0x17
cmp dword [esp + 0x1ac], 0x10
jb 0x1301ba92
mov eax, dword [esp + 0x198]
push eax
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x1ac], ebp
mov dword [esp + 0x1a8], ebx
mov byte [esp + 0x198], bl
push 1
push ebx
push 0x13111e68
lea ecx, [esp + 0x20]
call fcn.1300ac50
mov esi, eax
cmp esi, 0xffffffff
je 0x1301bb8a
push esi
push ebx
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x20]
call fcn.1300cb90
mov byte [esp + 0x83c8], 0x19
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.13004980
mov byte [esp + 0x83c8], 0x17
cmp dword [esp + 0x174], 0x10
jb 0x1301bb10
mov edx, dword [esp + 0x160]
push edx
call fcn.13030fdc
add esp, 4
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x180], ebp
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
call fcn.1300cb90
mov byte [esp + 0x83c8], 0x1a
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x9c]
call fcn.13004980
mov byte [esp + 0x83c8], 0x17
cmp dword [esp + 0x190], 0x10
jb 0x1301bb73
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x190], ebp
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
jmp 0x1301bb9e
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x80]
call fcn.13004980
cmp dword [esp + 0x88], ebx
jbe 0x1301bbb8
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x74]
push eax
add ecx, 0x2c
call fcn.1301f550
mov byte [esp + 0x83c8], 0x16
cmp dword [esp + 0x2c], 0x10
jb 0x1301bbd4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x83c8], 0x13
lea ecx, [esp + 0x74]
call fcn.1301c5f0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.13008df0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
add esp, 8
neg dl
sbb edx, edx
not edx
test ecx, edx
jne 0x1301b9e0
mov byte [esp + 0x83c8], 0x12
cmp dword [esp + 0x4c], edi
jb 0x1301bc3d
mov eax, dword [esp + 0x38]
push eax
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x83c8], 2
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x120]
mov dword [esp + 0x50], ecx
mov dword [esp + eax + 0xcc], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [esp + 0x83c8], 0x1b
lea ecx, [esp + 0xd8]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xd8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [esp + 0x83c8], 0x1d
test byte [esp + 0x118], 1
je 0x1301bcbb
mov edx, dword [esp + 0xe8]
mov eax, dword [edx]
push eax
call fcn.13030fdc
add esp, 4
mov eax, dword [esp + 0xe8]
mov dword [eax], ebx
mov ecx, dword [esp + 0xf8]
mov dword [ecx], ebx
mov edx, dword [esp + 0x108]
mov dword [edx], ebx
mov eax, dword [esp + 0xec]
mov dword [eax], ebx
mov ecx, dword [esp + 0xfc]
mov dword [ecx], ebx
mov edx, dword [esp + 0x10c]
mov dword [edx], ebx
and dword [esp + 0x118], 0xfffffffe
mov dword [esp + 0x114], ebx
mov byte [esp + 0x83c8], 0x1b
lea ecx, [esp + 0xd8]
call fcn.13003440
mov byte [esp + 0x83c8], 2
lea ecx, [esp + 0xd8]
call fcn.13003000
lea eax, [esp + 0x120]
mov dword [esp + 0x50], eax
mov dword [esp + method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x83c8], 2
mov ecx, eax
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1302f0be
add esp, 4
lea ecx, [esp + 0x58]
call fcn.1300a5f0
jmp 0x1301bd77
mov byte [esp + 0x83c8], bl
cmp dword [esp + 0x70], edi
pop ebp
jb 0x1301bd92
mov edx, dword [esp + 0x58]
push edx
call fcn.13030fdc
add esp, 4
mov esi, 7
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0x83c4], 0xffffffff
cmp dword [esp + 0x83e4], edi
jb 0x1301bdc8
mov eax, dword [esp + 0x83d0]
push eax
call fcn.13030fdc
add esp, 4
mov ecx, dword [esp + 0x83bc]
pop edi
mov dword [esp + 0x83e0], esi
mov dword [esp + 0x83dc], ebx
mov word [esp + 0x83cc], bx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x83bc
ret 0x1c