Function at 0x40fb00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x548e47
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x20], esi
call fcn.00405ab0
add esp, 8
push eax
lea ecx, [esi + 0x20]
mov dword [esp + 0x33c], 0
call fcn.00471ed0
mov dword [esp + 0x338], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00405640
lea ecx, [esi + 8]
call fcn.00405640
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00405640
lea ecx, [esi + 0x14]
call fcn.00405640
push 1
lea ecx, [esi + 0x18]
push 0x55cd10
call fcn.004056d0
lea ecx, [esi + 0x10]
call fcn.00405640
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0x266]
push edx
mov word [esp + 0x268], cx
call fcn.0050c770
add esp, 0xc
push 0x64
lea eax, [esp + 0x260]
push eax
call fcn.0053d5c0
test eax, eax
je 0x40fc2f
lea eax, [esp + 0x25c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x260]
push ecx
mov ecx, esi
call fcn.004056d0
add esi, 4
call fcn.0040f750
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00405ab0
push 0x55cd14
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x34c], 1
call fcn.00404ee0
add esp, 0x14
mov byte [esp + 0x338], 2
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0x20]
call fcn.0040f930
mov ecx, dword [esp + 0x18]
push eax
add ecx, 8
mov byte [esp + 0x33c], 3
call fcn.004049c0
mov bl, 2
mov byte [esp + 0x338], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x55c8c4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404ee0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 4
call fcn.004049c0
mov byte [esp + 0x338], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe81
mov eax, dword [edi]
mov esi, dword [esp + 0x14]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or eax, ecx
jge 0x40fd44
push 0x3e8
mov ecx, edi
call fcn.00405870
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x3e8
push eax
push 0x55c8dc
push str.language
push 0x55c8f8
call ebx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40fd77
push ecx
push eax
call fcn.0050cd69
add esp, 8
mov edx, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi + 0x14]
mov edi, dword [esp + 0x14]
add esi, 0x14
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or eax, ecx
jge 0x40fdb5
push 0x3e8
mov ecx, esi
call fcn.00405870
mov eax, dword [esi]
push edi
push 0x3e8
push eax
push 0x55cd84
push str.channel
push 0x55c8f8
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40fde2
push ecx
push eax
call fcn.0050cd69
add esp, 8
mov ecx, dword [esi]
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esi + 0x18]
mov edi, dword [esp + 0x14]
add esi, 0x18
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x3e8
or eax, ecx
jge 0x40fe20
push 0x3e8
mov ecx, esi
call fcn.00405870
mov eax, dword [esi]
push edi
push 0x3e8
push eax
push 0x55cd84
push str.schannel
push 0x55c8f8
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40fe4d
push ecx
push eax
call fcn.0050cd69
add esp, 8
mov edx, dword [esi]
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
je 0x40fe73
push esi
push 0x55cd4c
call fcn.004028d0
add esp, 8
test al, al
je 0x40fe81
push 1
push 0x55cd10
mov ecx, esi
call fcn.004056d0
push pe_nt_image_headers32
xor edi, edi
lea ecx, [esp + 0x2c]
push edi
push ecx
xor esi, esi
mov dword [esp + 0x30], 0x114
call fcn.0050c770
add esp, 0xc
push 0x118
lea edx, [esp + 0x144]
push edi
push edx
mov dword [esp + 0x148], 0x11c
call fcn.0050c770
add esp, 0xc
cmp dword [0x57ffcc], edi
je 0x40fefa
cmp dword [0x57fbac], 0xb
jbe 0x40fefa
mov eax, dword [0x57fbdc]
test eax, eax
je 0x40fefa
push edi
lea ecx, [esp + 0x140]
push ecx
call eax
test eax, eax
je 0x40fefa
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x144]
jmp 0x40ff11
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40ff11
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
mov eax, 0x55cd50
jne 0x40ff27
mov eax, 0x55cd58
push eax
mov eax, dword [esp + 0x1c]
push edi
push esi
add eax, 0x10
push 0x55cd60
push eax
call fcn.00403850
add esp, 0x14
call fcn.0040f590
mov esi, eax
cmp byte [esi + 0x224], 0
jne 0x40ff56
mov ecx, esi
call fcn.0040f360
cmp dword [esi], 0
je 0x40ff70
mov esi, dword [esi + 0x210]
test esi, esi
je 0x40ff70
push 0
push 0
call esi
add esp, 8
jmp 0x40ff72
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x1c], eax
mov byte [esp + 0x338], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ffa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x338], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret