Function at 0x4055e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4303
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x61df64]
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 ebx, ecx
mov dword [ebp - 0x27c], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056c4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
cmp word [ebp - 0x218], 0
jne 0x40565d
xor ecx, ecx
jmp 0x405675
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405666
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
lea esi, [ebx + 0x2cc]
push eax
mov ecx, esi
call fcn.004107f0
push 0x5f12ac
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.00409240
push str.Config.ini
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00409350
add esp, 8
mov ebx, eax
cmp esi, ebx
je 0x4056f8
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4056d1
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00412560
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4056e9
mov eax, dword [esi]
jmp 0x4056eb
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00411bc0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x405716
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00412560
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x405758
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00412560
cmp dword [esi + 0x14], 8
jb 0x405762
mov eax, dword [esi]
jmp 0x405764
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40587f
lea eax, [ebp - 0x218]
push eax
call edi
cmp word [ebp - 0x218], 0
jne 0x40578a
xor ecx, ecx
jmp 0x4057a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405793
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004107f0
push 0x5f12ac
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.00409240
push str.Config.ini
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00409350
add esp, 8
mov edi, eax
cmp esi, edi
je 0x40581f
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4057f8
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00412560
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x405810
mov eax, dword [esi]
jmp 0x405812
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00411bc0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40583d
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00412560
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x40587f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00412560
push 0xc
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x5ebfc8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.004107f0
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x248]
push eax
sub esp, 8
mov dword [ebp - 4], 4
lea eax, [ebp - 0x278]
mov ecx, esi
push eax
call fcn.004053d0
mov edi, eax
add esi, 0x2b4
cmp esi, edi
je 0x405919
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4058f2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00412560
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40590a
mov eax, dword [esi]
jmp 0x40590c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00411bc0
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x405937
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00412560
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x405972
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00412560
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.00567f8c
mov esp, ebp
pop ebp
ret 4