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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447af8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45a5d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0
jb 0x414866
mov eax, dword [edi]
jmp 0x414868
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41489c
push 0x19
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
push 0x4531e4
mov word [ebx], ax
call fcn.00403d10
mov eax, ebx
jmp 0x414a23
xor ecx, ecx
mov dword [ebp - 0x30], 1
mov eax, 0x104
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004199de
mov ebx, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
jb 0x4148e4
mov esi, dword [edi]
jmp 0x4148e6
mov esi, edi
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x4148f3
mov edx, dword [eax]
jmp 0x4148f5
mov edx, eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x14], 8
jb 0x414902
mov ecx, dword [eax]
jmp 0x414904
mov ecx, eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 8
jb 0x41490f
mov eax, dword [eax]
push esi
push 0x104
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 0x104
cmp dword [edi + 0x14], 8
jb 0x41492e
mov eax, dword [edi]
jmp 0x414930
mov eax, edi
mov ecx, dword [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.00403e70
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00403e70
mov ecx, dword [ebp - 0x34]
push eax
call fcn.00403e70
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x4149c9
mov ecx, dword [ebp - 0x2c]
call fcn.00403e70
mov ecx, ebx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41498b
test dx, dx
je 0x414987
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41498b
add ecx, 4
add eax, 4
test dx, dx
jne 0x414965
xor eax, eax
jmp 0x414990
sbb eax, eax
or eax, 1
test eax, eax
je 0x4149c9
push ebx
call fcn.0042d9ad
mov eax, dword [ebp - 0x30]
xor ecx, ecx
inc eax
mov edx, 2
imul esi, eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004199de
add esp, 8
mov ebx, eax
jmp 0x414924
cmp word [ebx], 0
jne 0x4149d3
xor ecx, ecx
jmp 0x4149ef
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x4149e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403d10
push ebx
call fcn.0042d9ad
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
add esp, 4
mov ecx, esi
push eax
call fcn.00401fe0
cmp dword [ebp - 0x14], 8
jb 0x414a21
push dword [ebp - 0x28]
call fcn.0042cfae
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cfb3
mov esp, ebp
pop ebp
ret 0x10