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

Disassembly:
push 0xffffffffffffffff
push 0x46916b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x481b08]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481b08]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x284]
mov edi, dword [esp + 0x288]
mov ebx, dword [esp + 0x28c]
mov esi, dword [esp + 0x290]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
call fcn.004129b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40dad4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete al
cmp dword [esp + 0x34], 8
mov byte [esp + 0x17], al
jb 0x40dafb
push dword [esp + 0x20]
call fcn.00449096
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x40db5e
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40db0b
mov edx, dword [esi]
jmp 0x40db0d
mov edx, esi
mov eax, dword [esi + 0x10]
lea eax, [edx + eax*2]
cmp ecx, 8
jb 0x40db1a
mov esi, dword [esi]
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.0040a0d0
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00402d50
cmp dword [esp + 0x34], 0x10
jb 0x40dca2
push dword [esp + 0x20]
jmp 0x40dc9a
push 0x208
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0044ae30
lea eax, [esp + 0x2c]
push eax
call fcn.004129b0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x40db84
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x40db8c
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x40db94
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x40db9c
mov edi, dword [edi]
push eax
push 0x104
lea eax, [esp + 0x70]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [esp + 0x34], 8
jb 0x40dbc3
push dword [esp + 0x20]
call fcn.00449096
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp word [esp + 0x68], ax
jne 0x40dbe5
xor ecx, ecx
jmp 0x40dbff
lea ecx, [esp + 0x68]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dbf0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401b70
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x48]
push dword [esp + 0x18]
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
mov dword [esp + 0x280], 0
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.0040a0d0
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.00402d50
cmp dword [esp + 0x64], 0x10
jb 0x40dc7a
push dword [esp + 0x50]
call fcn.00449096
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x40dca2
push dword [esp + 0x38]
call fcn.00449096
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00449824
add esp, 0x26c
ret