Function at 0x404b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd66
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x280], ebx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x404bcd
xor ecx, ecx
jmp 0x404be5
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404bd6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
lea esi, [ebx + 0x2cc]
push eax
mov ecx, esi
call fcn.00406520
push 0x423820
lea eax, [ebp - 0x27c]
push esi
push eax
call fcn.0040a1f0
add esp, 0xc
push str.Config.ini
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
call fcn.0040a300
add esp, 0xc
mov ebx, eax
cmp esi, ebx
je 0x404c69
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x404c42
inc eax
push eax
push dword [esi]
call fcn.004078f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x404c5a
mov eax, dword [esi]
jmp 0x404c5c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00406740
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x404c81
inc eax
push eax
push dword [ebp - 0x234]
call fcn.004078f0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 8
jb 0x404cbd
inc eax
push eax
push dword [ebp - 0x27c]
call fcn.004078f0
cmp dword [esi + 0x14], 8
jb 0x404cc7
mov eax, dword [esi]
jmp 0x404cc9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404de1
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x404cef
xor ecx, ecx
jmp 0x404d0f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00406520
push 0x42383c
lea eax, [ebp - 0x27c]
push esi
push eax
call fcn.0040a1f0
add esp, 0xc
push 0x423824
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
call fcn.0040a300
add esp, 0xc
mov edi, eax
cmp esi, edi
je 0x404d8d
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x404d66
inc eax
push eax
push dword [esi]
call fcn.004078f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x404d7e
mov eax, dword [esi]
jmp 0x404d80
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00406740
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x404da5
inc eax
push eax
push dword [ebp - 0x234]
call fcn.004078f0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 8
jb 0x404de1
inc eax
push eax
push dword [ebp - 0x27c]
call fcn.004078f0
push 0xc
xor eax, eax
mov dword [ebp - 0x238], 7
push 0x423840
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.00406520
mov esi, dword [ebp - 0x280]
lea eax, [ebp - 0x24c]
push eax
sub esp, 8
mov dword [ebp - 4], 4
lea eax, [ebp - 0x264]
mov ecx, esi
push eax
call fcn.00404950
mov edi, eax
add esi, 0x2b4
cmp esi, edi
je 0x404e79
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x404e52
inc eax
push eax
push dword [esi]
call fcn.004078f0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x404e6a
mov eax, dword [esi]
jmp 0x404e6c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00406740
mov eax, dword [ebp - 0x250]
cmp eax, 8
jb 0x404e91
inc eax
push eax
push dword [ebp - 0x264]
call fcn.004078f0
xor eax, eax
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x254], 0
cmp eax, 8
jb 0x404ec6
inc eax
push eax
push dword [ebp - 0x24c]
call fcn.004078f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 4