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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5856de
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, edi
mov dword [ebp - 0x120], edi
call fcn.0045f995
mov dword [ebp - 4], 0
mov dword [edi], vtable.CSCDDownload.0
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43be00
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x74], eax
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43be29
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x78], eax
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 1
call fcn.0045f995
mov dword [edi + 0x80], vtable.CMessageBoxEx.0
mov byte [ebp - 4], 2
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43be6f
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xfc], eax
lea esi, [edi + 0x100]
call fcn.0043c110
mov byte [ebp - 4], 4
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43beaa
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x198], eax
mov byte [ebp - 4], 5
mov dword [edi + 0xf4], 0
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43bee4
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x124], esi
mov byte [ebp - 4], 6
call fcn.0045c778
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43bf14
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x114]
push ecx
push 0x104
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43bf45
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, 0x5f0548
call fcn.00402d70
push str.SysConfig.ini
lea eax, [ebp - 0x118]
push 0x5f0548
push eax
call fcn.0040b980
add esp, 0xc
push eax
mov ecx, 0x5f0544
mov byte [ebp - 4], 8
call fcn.00402920
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43bfae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x5f0544]
push ecx
push 0
push str.SaveLog
push str.dlparam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 9
push str.ErrorLog
lea ecx, [ebp - 0x11c]
mov dword [0x5f00c0], eax
call fcn.00402d70
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x118]
push 0x5f0548
push eax
call fcn.00402140
mov eax, dword [eax]
push eax
call fcn.0055c815
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
push str.TestLog
lea ecx, [ebp - 0x11c]
call fcn.00402d70
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x118]
push 0x5f0548
push edx
call fcn.00402140
mov eax, dword [eax]
push eax
call fcn.0055c815
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c07a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c0a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c0c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret