Function at 0x41a6a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a482f
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], edx
mov eax, ecx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x440], 0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [ebp - 0x450], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, 1
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x440], ecx
mov dword [ebp - 4], ecx
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x41afd9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 3
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x41afe3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x42c], edi
mov byte [ebp - 4], 4
call fcn.00406d20
mov ecx, eax
test ecx, ecx
je 0x41afed
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
push esi
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.004051b0
test al, al
jne 0x41a7dc
test esi, esi
jne 0x41a7b4
xor ecx, ecx
jmp 0x41a7cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a7c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x424]
call fcn.004056b0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x424]
push 0x5c
push esi
call fcn.0047fdbb
add esp, 8
test eax, eax
jne 0x41a7fa
or eax, 0xffffffff
jmp 0x41a7fe
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040e950
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 7
call fcn.0040eb00
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a843
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x448], 0
push str._dCmdLine
push eax
call fcn.0041eca0
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebp - 0x450]
push 0x104
push eax
push 0x4c7a1c
push esi
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x41af60
nop dword [eax + eax]
mov esi, dword [ebp - 0x448]
lea eax, [ebp - 0x428]
push esi
push str._dParameters
push eax
call fcn.0041eca0
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x450]
push 0x104
push eax
push 0x4c7a1c
push dword [ebp - 0x428]
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 2
jbe 0x41a947
push 2
lea eax, [ebp - 0x218]
push 0x4ca440
push eax
call fcn.0048ff0e
add esp, 0xc
test eax, eax
je 0x41a911
cmp word [ebp - 0x216], 0x3a
jne 0x41a947
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a920
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004056b0
jmp 0x41ae22
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x44c], 0
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x41a96b
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x41a97b
call fcn.00406d20
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 9
test ecx, ecx
je 0x41afd9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 8
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x438]
or eax, 8
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x444]
test eax, eax
jne 0x41a9c4
xor ecx, ecx
jmp 0x41a9df
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a9d0
sub ecx, edx
sar ecx, 1
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x43c], eax
lea edx, [ecx + eax]
mov dword [ebp - 0x454], edx
test edx, edx
js 0x41afcf
mov eax, dword [ebp - 0x430]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x41aa28
push edx
lea ecx, [ebp - 0x44c]
call fcn.00405640
mov esi, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x43c]
add eax, eax
je 0x41aa62
test esi, esi
je 0x41aa52
push eax
test edi, edi
je 0x41aa47
push edi
push esi
call fcn.0047eed0
add esp, 0xc
jmp 0x41aa62
push 0
push esi
call fcn.0047f8f0
add esp, 0xc
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
mov eax, dword [ebp - 0x434]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x43c]
lea eax, [esi + eax*2]
test ecx, ecx
je 0x41aaae
test eax, eax
je 0x41aa9e
mov edx, dword [ebp - 0x444]
push ecx
test edx, edx
je 0x41aa93
push edx
push eax
call fcn.0047eed0
add esp, 0xc
jmp 0x41aaae
push 0
push eax
call fcn.0047f8f0
add esp, 0xc
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
mov eax, dword [ebp - 0x454]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x464], ecx
cmp eax, dword [ecx + 8]
jg 0x41afcf
xor edx, edx
mov dword [ecx + 4], eax
mov word [esi + eax*2], dx
mov ecx, dword [ecx]
mov dword [ebp - 0x43c], edx
test ecx, ecx
je 0x41aae8
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x41aaf8
call fcn.00406d20
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x41afd9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x438]
or ecx, 4
mov dword [ebp - 0x438], ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x440], ecx
mov ecx, dword [esi - 0xc]
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], ecx
lea edx, [ecx + 1]
test edx, edx
js 0x41afcf
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x41ab64
push edx
lea ecx, [ebp - 0x43c]
call fcn.00405640
mov edi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x430]
add eax, eax
mov dword [ebp - 0x434], eax
je 0x41abaa
test edi, edi
je 0x41ab94
push eax
test esi, esi
je 0x41ab89
push esi
push edi
call fcn.0047eed0
add esp, 0xc
jmp 0x41aba4
push 0
push edi
call fcn.0047f8f0
add esp, 0xc
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
mov eax, dword [ebp - 0x434]
add eax, edi
jne 0x41abc0
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
jmp 0x41abc8
mov ecx, 0x5c
mov word [eax], cx
mov eax, dword [ebp - 0x430]
lea edx, [edi - 0x10]
inc eax
mov dword [ebp - 0x468], edx
cmp eax, dword [edx + 8]
jg 0x41afcf
xor ecx, ecx
mov dword [edx + 4], eax
mov word [edi + eax*2], cx
mov dword [ebp - 0x434], ecx
mov ecx, dword [edx]
test ecx, ecx
je 0x41ac03
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x41ac13
call fcn.00406d20
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x41afd9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x454], eax
lea edx, [ecx + 2]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x438]
or eax, 2
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ac57
mov eax, dword [edi - 0xc]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x430], eax
lea edx, [ecx + eax]
mov dword [ebp - 0x45c], edx
test edx, edx
js 0x41afcf
mov eax, dword [ebp - 0x454]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x41acaf
push edx
lea ecx, [ebp - 0x434]
call fcn.00405640
mov esi, dword [ebp - 0x434]
mov eax, dword [ebp - 0x430]
add eax, eax
je 0x41ace9
test esi, esi
je 0x41acd9
push eax
test edi, edi
je 0x41acce
push edi
push esi
call fcn.0047eed0
add esp, 0xc
jmp 0x41ace9
push 0
push esi
call fcn.0047f8f0
add esp, 0xc
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
mov eax, dword [ebp - 0x458]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x430]
lea eax, [esi + eax*2]
test ecx, ecx
je 0x41ad26
test eax, eax
jne 0x41ad15
call fcn.004830ad
mov dword [eax], 0x16
call fcn.00482faf
jmp 0x41ad26
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.0047eed0
add esp, 0xc
mov eax, dword [ebp - 0x45c]
lea edi, [esi - 0x10]
cmp eax, dword [edi + 8]
jg 0x41afcf
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
mov dword [ebp - 0x458], ecx
cmp edi, ecx
je 0x41adb1
lea eax, [ecx + 0xc]
mov dword [ebp - 0x45c], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x41ada2
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x41ada2
push edi
call fcn.00405570
mov ecx, dword [ebp - 0x45c]
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41ad97
mov edx, dword [ebp - 0x458]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x42c], eax
jmp 0x41adb1
push dword [edi + 4]
lea ecx, [ebp - 0x42c]
push esi
call fcn.004056b0
mov esi, dword [ebp - 0x438]
or eax, 0xffffffff
and esi, 0xfffffffd
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41adcf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x468]
or edi, 0xffffffff
and esi, 0xfffffffb
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41adef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x464]
and esi, 0xfffffff7
mov dword [ebp - 0x438], esi
mov eax, edi
mov dword [ebp - 0x440], esi
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x448]
mov edi, dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41af0c
mov ecx, edi
mov dword [ebp - 0x470], 0
xorps xmm0, xmm0
mov dword [ebp - 0x46c], 0
movups xmmword [ebp - 0x480], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x480]
call fcn.00402a10
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x460]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x41aeb9
movups xmm0, xmmword [ebp - 0x480]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x470]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edx + 4], 0x18
mov word [ebp - 0x480], ax
jmp 0x41aece
lea ecx, [ebp - 0x480]
push ecx
push eax
mov ecx, edx
call fcn.0041f810
mov ecx, dword [ebp - 0x46c]
mov byte [ebp - 4], 6
cmp ecx, 8
jb 0x41af0c
mov edx, dword [ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41af02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aff7
push ecx
push edx
call fcn.0047dc2a
add esp, 8
inc esi
lea eax, [ebp - 0x428]
push esi
push str._dCmdLine
push eax
mov dword [ebp - 0x448], esi
call fcn.0041eca0
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebp - 0x450]
push 0x104
push eax
push 0x4c7a1c
push esi
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x430], eax
test eax, eax
jne 0x41a8a0
mov edx, dword [ebp - 0x424]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41af7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41af96
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41afae
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406ac0
push 0x80004005
call fcn.00406ac0
push 0x80004005
call fcn.00406ac0
push 0x80004005
call fcn.00406ac0
call fcn.00482fbf
int3