Function at 0x4babf0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc268
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x234], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.00481660
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
call fcn.00481660
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp - 0x224]
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x4bad10
sub eax, dword [ebp - 0x224]
sar eax, 1
test eax, eax
jle 0x4bad10
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00487e60
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.0047e320
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bad10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x228]
lea eax, [ebp - 0x224]
push str._sTeraBoxWebService.ini
push eax
call fcn.0047ea80
add esp, 0xc
push dword [ebp - 0x224]
push 0
push str.DebugOutput
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x22c], eax
test al, 1
je 0x4baf28
push 0x20
call fcn.004be09e
mov esi, eax
add esp, 4
mov dword [ebp - 0x230], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 3
movups xmmword [esi], xmm0
push str.TeraBoxWebService.log
lea edx, [ebp - 0x228]
lea ecx, [ebp - 0x238]
movups xmmword [esi + 0x10], xmm0
call fcn.00482920
add esp, 4
mov byte [ebp - 4], 4
mov ecx, esi
push dword [eax]
mov dword [ebp - 0x234], 1
call fcn.004bdb60
mov esi, eax
mov dword [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4badc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push ecx
push esi
call fcn.004b5db0
mov ecx, eax
call fcn.004bd920
push 8
call fcn.004be09e
add esp, 4
mov dword [ebp - 0x230], eax
mov dword [eax + 4], 0xe
push 0x20
mov dword [eax], vtable.tp::lc_indent.0
call fcn.004be09e
add esp, 4
mov dword [ebp - 0x23c], eax
mov dword [eax + 4], 0xd
lea ecx, [eax + 8]
mov dword [eax], vtable.tp::lc_type.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4bae2b
mov eax, dword [ecx]
jmp 0x4bae2d
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x4ec134
mov byte [ebp - 4], 8
call fcn.00489cb0
push 0x20
mov byte [ebp - 4], 1
call fcn.004be09e
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [eax + 4], 0xf
lea ecx, [eax + 8]
mov dword [eax], vtable.tp::lc_tid.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4bae7e
mov eax, dword [ecx]
jmp 0x4bae80
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x4ec158
mov byte [ebp - 4], 0xb
call fcn.00489cb0
push 0x24
mov byte [ebp - 4], 1
call fcn.004be09e
mov dword [ebp - 0x240], eax
push 0x4ec168
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.004bd0c0
push eax
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x238], esi
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
push ecx
lea ecx, [ebp - 0x238]
call fcn.004bd1c0
push dword [ebp - 0x234]
mov esi, eax
push dword [esi]
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
push ecx
mov ecx, esi
call fcn.004bd1c0
push dword [ebp - 0x23c]
mov esi, eax
push dword [esi]
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
push dword [ebp - 0x230]
push dword [esi]
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
mov eax, dword [ebp - 0x22c]
test al, 2
je 0x4baf37
call fcn.004bbff0
mov eax, dword [ebp - 0x22c]
test al, 4
je 0x4baffd
push 4
call fcn.004be09e
add esp, 4
mov esi, eax
mov dword [ebp - 0x240], esi
push 1
push ecx
push esi
mov dword [esi], vtable.tp::ld_debug_output.0
call fcn.004b5db0
mov ecx, eax
call fcn.004bd920
push 8
call fcn.004be09e
add esp, 4
mov dword [ebp - 0x23c], eax
mov dword [eax + 4], 0xe
push 0x20
mov dword [eax], vtable.tp::lc_indent.0
call fcn.004be09e
add esp, 4
mov dword [ebp - 0x230], eax
mov dword [eax + 4], 0xd
lea ecx, [eax + 8]
mov dword [eax], vtable.tp::lc_type.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4bafbc
mov eax, dword [ecx]
jmp 0x4bafbe
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x4ec134
mov byte [ebp - 4], 0xf
call fcn.00489cb0
mov byte [ebp - 4], 1
push dword [ebp - 0x230]
push esi
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
push dword [ebp - 0x23c]
push esi
call fcn.004b5db0
mov ecx, eax
call fcn.004bd270
call fcn.004bb0f0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bb023
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4bb045
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret