Function at 0x42f7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8dd3
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xbc], 0
xor eax, eax
push 7
push str..config
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403740
mov dword [ebp - 4], 1
call fcn.0042ef60
mov edx, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x42f884
xor ecx, ecx
jmp 0x42f89f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f890
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403740
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0042f780
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0040a820
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
push ecx
push esi
mov ecx, eax
call fcn.0040a640
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0xbc], 1
jb 0x42f8f6
push dword [ebp - 0x70]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x42f91e
push dword [ebp - 0x88]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x42f946
push dword [ebp - 0x40]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x42f96e
push dword [ebp - 0x28]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x42f98c
mov eax, dword [esi]
jmp 0x42f98e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42fa76
push 6
xor eax, eax
mov dword [ebp - 0x44], 7
push str.config
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00403740
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 5
call fcn.0042f780
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0040a820
mov byte [ebp - 4], 7
cmp esi, eax
je 0x42f9fd
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0xa4], 8
jb 0x42fa14
push dword [ebp - 0xb8]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], 7
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
jb 0x42fa48
push dword [ebp - 0xa0]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jb 0x42fa76
push dword [ebp - 0x58]
call fcn.0048fa72
add esp, 4
mov eax, esi
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.004906bc
mov esp, ebp
pop ebp
ret