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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4778db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0046f891
push str.Config.cfg
push 0x5c
push str.CONFIG
push 0x49b7b8
lea eax, [esp + 0x38]
push str._s_s_c_s
xor ebx, ebx
push eax
mov dword [esp + 0x24c], ebx
call fcn.0045d67e
add esp, 0x18
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42f342
push ebx
push 2
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.0046fae2
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
call fcn.0046f783
cmp eax, 0x1290
lea ecx, [esp + 0x10]
je 0x42f392
call fcn.0046f82f
push 0x498808
call fcn.00428a30
add esp, 4
push ebx
push 0x1002
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046fae2
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
call dword [edx + 0x28]
push 0x1290
push 0x498808
lea ecx, [esp + 0x18]
call fcn.0046f5de
lea ecx, [esp + 0x10]
call fcn.0046f82f
jmp 0x42f30a
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
call dword [eax + 0x28]
push 0x1290
push 0x498808
lea ecx, [esp + 0x18]
call fcn.0046f59e
lea ecx, [esp + 0x10]
call fcn.0046f82f
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [0x498c00], ebx
mov dword [0x498c04], ebx
mov dword [0x498c08], ebx
mov dword [0x498c0c], ebx
mov dword [0x498c80], ebx
mov dword [0x498e00], ebx
mov dword [0x498e04], ebx
mov dword [0x498e08], ebx
mov dword [0x498e0c], ebx
mov dword [0x498e80], ebx
mov dword [0x499000], ebx
mov dword [0x499004], ebx
mov dword [0x499008], ebx
mov dword [0x49900c], ebx
mov dword [0x499080], ebx
mov dword [0x499200], ebx
mov dword [0x499204], ebx
mov dword [0x499208], ebx
mov dword [0x49920c], ebx
mov dword [0x499280], ebx
mov dword [0x499400], ebx
mov dword [0x499404], ebx
mov dword [0x499408], ebx
mov dword [0x49940c], ebx
mov dword [0x499480], ebx
mov dword [0x499600], ebx
mov dword [0x499604], ebx
mov dword [0x499608], ebx
mov dword [0x49960c], ebx
mov dword [0x499680], ebx
mov dword [0x499800], ebx
mov dword [0x499804], ebx
mov dword [0x499808], ebx
mov dword [0x49980c], ebx
mov dword [0x499880], ebx
mov dword [esp + 0x28], ebx
call fcn.0042bea0
mov esi, dword [esp + 0x28]
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov edi, 1
je 0x42f4d5
cmp esi, edi
jl 0x42f4d5
xor eax, eax
cmp esi, ebx
jle 0x42f4d5
mov edx, dword [0x498bb4]
lea ecx, [ebp + 4]
cmp dword [ecx], edx
je 0x42fae1
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f4c2
mov eax, 2
mov dword [0x498a88], ebx
mov dword [0x498c00], ebx
mov dword [0x498c04], ebx
mov dword [0x498c08], ebx
mov dword [0x498c0c], ebx
mov dword [0x498c80], ebx
mov dword [0x498bb4], 0xffffffff
mov dword [0x498bb0], ebx
mov dword [0x498bfc], ebx
mov dword [0x498c7c], ebx
mov dword [0x498bf8], eax
mov dword [0x498c10], 0
mov dword [0x498c14], 0
mov dword [0x498c18], 0
mov dword [0x498c1c], 0
mov byte [0x498bb8], bl
mov dword [0x498c20], 0
mov dword [0x498c24], 0x3ff00000
mov dword [0x498c30], edi
mov dword [0x498c28], edi
mov dword [0x498c34], eax
mov dword [0x498c2c], edi
mov dword [0x498c38], 0xc8
mov dword [0x498c3c], edi
cmp ebp, ebx
je 0x42f5b3
cmp esi, edi
jl 0x42f5b3
xor eax, eax
cmp esi, ebx
jle 0x42f5b3
mov edx, dword [0x498db4]
lea ecx, [ebp + 4]
nop
cmp dword [ecx], edx
je 0x42fb1d
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f5a0
mov eax, 2
mov dword [0x498c88], ebx
mov dword [0x498e00], ebx
mov dword [0x498e04], ebx
mov dword [0x498e08], ebx
mov dword [0x498e0c], ebx
mov dword [0x498e80], ebx
mov dword [0x498db4], 0xffffffff
mov dword [0x498db0], ebx
mov dword [0x498dfc], ebx
mov dword [0x498e7c], ebx
mov dword [0x498df8], eax
mov dword [0x498e10], 0
mov dword [0x498e14], 0
mov dword [0x498e18], 0
mov dword [0x498e1c], 0
mov byte [0x498db8], bl
mov dword [0x498e20], 0
mov dword [0x498e24], 0x3ff00000
mov dword [0x498e30], edi
mov dword [0x498e28], edi
mov dword [0x498e34], eax
mov dword [0x498e2c], edi
mov dword [0x498e38], 0xc8
mov dword [0x498e3c], edi
cmp ebp, ebx
je 0x42f693
cmp esi, edi
jl 0x42f693
xor eax, eax
cmp esi, ebx
jle 0x42f693
mov edx, dword [0x498fb4]
lea ecx, [ebp + 4]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x42fb59
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f680
mov eax, 2
mov dword [0x498e88], ebx
mov dword [0x499000], ebx
mov dword [0x499004], ebx
mov dword [0x499008], ebx
mov dword [0x49900c], ebx
mov dword [0x499080], ebx
mov dword [0x498fb4], 0xffffffff
mov dword [0x498fb0], ebx
mov dword [0x498ffc], ebx
mov dword [0x49907c], ebx
mov dword [0x498ff8], eax
mov dword [0x499010], 0
mov dword [0x499014], 0
mov dword [0x499018], 0
mov dword [0x49901c], 0
mov byte [0x498fb8], bl
mov dword [0x499020], 0
mov dword [0x499024], 0x3ff00000
mov dword [0x499030], edi
mov dword [0x499028], edi
mov dword [0x499034], eax
mov dword [0x49902c], edi
mov dword [0x499038], 0xc8
mov dword [0x49903c], edi
cmp ebp, ebx
je 0x42f773
cmp esi, edi
jl 0x42f773
xor eax, eax
cmp esi, ebx
jle 0x42f773
mov edx, dword [0x4991b4]
lea ecx, [ebp + 4]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x42fb95
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f760
mov eax, 2
mov dword [0x499088], ebx
mov dword [0x499200], ebx
mov dword [0x499204], ebx
mov dword [0x499208], ebx
mov dword [0x49920c], ebx
mov dword [0x499280], ebx
mov dword [0x4991b4], 0xffffffff
mov dword [0x4991b0], ebx
mov dword [0x4991fc], ebx
mov dword [0x49927c], ebx
mov dword [0x4991f8], eax
mov dword [0x499210], 0
mov dword [0x499214], 0
mov dword [0x499218], 0
mov dword [0x49921c], 0
mov byte [0x4991b8], bl
mov dword [0x499220], 0
mov dword [0x499224], 0x3ff00000
mov dword [0x499230], edi
mov dword [0x499228], edi
mov dword [0x499234], eax
mov dword [0x49922c], edi
mov dword [0x499238], 0xc8
mov dword [0x49923c], edi
cmp ebp, ebx
je 0x42f853
cmp esi, edi
jl 0x42f853
xor eax, eax
cmp esi, ebx
jle 0x42f853
mov edx, dword [0x4993b4]
lea ecx, [ebp + 4]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x42fbd1
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f840
mov eax, 2
mov dword [0x499288], ebx
mov dword [0x499400], ebx
mov dword [0x499404], ebx
mov dword [0x499408], ebx
mov dword [0x49940c], ebx
mov dword [0x499480], ebx
mov dword [0x4993b4], 0xffffffff
mov dword [0x4993b0], ebx
mov dword [0x4993fc], ebx
mov dword [0x49947c], ebx
mov dword [0x4993f8], eax
mov dword [0x499410], 0
mov dword [0x499414], 0
mov dword [0x499418], 0
mov dword [0x49941c], 0
mov byte [0x4993b8], bl
mov dword [0x499420], 0
mov dword [0x499424], 0x3ff00000
mov dword [0x499430], edi
mov dword [0x499428], edi
mov dword [0x499434], eax
mov dword [0x49942c], edi
mov dword [0x499438], 0xc8
mov dword [0x49943c], edi
cmp ebp, ebx
je 0x42f933
cmp esi, edi
jl 0x42f933
xor eax, eax
cmp esi, ebx
jle 0x42f933
mov edx, dword [0x4995b4]
lea ecx, [ebp + 4]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x42fc0d
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42f920
mov eax, 2
mov dword [0x499488], ebx
mov dword [0x499600], ebx
mov dword [0x499604], ebx
mov dword [0x499608], ebx
mov dword [0x49960c], ebx
mov dword [0x499680], ebx
mov dword [0x4995b4], 0xffffffff
mov dword [0x4995b0], ebx
mov dword [0x4995fc], ebx
mov dword [0x49967c], ebx
mov dword [0x4995f8], eax
mov dword [0x499610], 0
mov dword [0x499614], 0
mov dword [0x499618], 0
mov dword [0x49961c], 0
mov byte [0x4995b8], bl
mov dword [0x499620], 0
mov dword [0x499624], 0x3ff00000
mov dword [0x499630], edi
mov dword [0x499628], edi
mov dword [0x499634], eax
mov dword [0x49962c], edi
mov dword [0x499638], 0xc8
mov dword [0x49963c], edi
cmp ebp, ebx
je 0x42fa13
cmp esi, edi
jl 0x42fa13
xor eax, eax
cmp esi, ebx
jle 0x42fa13
mov edx, dword [0x4997b4]
lea ecx, [ebp + 4]
lea ecx, [ecx]
cmp dword [ecx], edx
je 0x42fc49
inc eax
add ecx, 0xd8
cmp eax, esi
jl 0x42fa00
mov eax, 2
mov dword [0x499688], ebx
mov dword [0x499800], ebx
mov dword [0x499804], ebx
mov dword [0x499808], ebx
mov dword [0x49980c], ebx
mov dword [0x499880], ebx
mov dword [0x4997b4], 0xffffffff
mov dword [0x4997b0], ebx
mov dword [0x4997fc], ebx
mov dword [0x49987c], ebx
mov dword [0x4997f8], eax
mov dword [0x499810], 0
mov dword [0x499814], 0
mov dword [0x499818], 0
mov dword [0x49981c], 0
mov byte [0x4997b8], bl
mov dword [0x499820], 0
mov dword [0x499824], 0x3ff00000
mov dword [0x499830], edi
mov dword [0x499828], edi
mov dword [0x499834], eax
mov dword [0x49982c], edi
mov dword [0x499838], 0xc8
mov dword [0x49983c], edi
cmp ebp, ebx
je 0x42fcb0
cmp esi, edi
jge 0x42fc85
push ebp
call fcn.0045df2d
jmp 0x42fcad
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f4d5
push 0x498bb0
push eax
call fcn.004246d0
mov eax, dword [0x498bfc]
mov ecx, dword [0x498c04]
mov edx, dword [0x498c00]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f588
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f5b3
push 0x498db0
push eax
call fcn.004246d0
mov eax, dword [0x498dfc]
mov ecx, dword [0x498e04]
mov edx, dword [0x498e00]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f666
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f693
push 0x498fb0
push eax
call fcn.004246d0
mov eax, dword [0x498ffc]
mov ecx, dword [0x499004]
mov edx, dword [0x499000]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f746
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f773
push 0x4991b0
push eax
call fcn.004246d0
mov eax, dword [0x4991fc]
mov ecx, dword [0x499204]
mov edx, dword [0x499200]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f826
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f853
push 0x4993b0
push eax
call fcn.004246d0
mov eax, dword [0x4993fc]
mov ecx, dword [0x499404]
mov edx, dword [0x499400]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f906
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42f933
push 0x4995b0
push eax
call fcn.004246d0
mov eax, dword [0x4995fc]
mov ecx, dword [0x499604]
mov edx, dword [0x499600]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42f9e6
imul eax, eax, 0xd8
add eax, ebp
cmp eax, ebx
je 0x42fa13
push 0x4997b0
push eax
call fcn.004246d0
mov eax, dword [0x4997fc]
mov ecx, dword [0x499804]
mov edx, dword [0x499800]
push eax
push ecx
push edx
call fcn.00424130
add esp, 0x14
jmp 0x42fac6
cmp esi, ebx
jle 0x42fca2
mov edi, ebp
jmp 0x42fc90
push edi
call fcn.00424340
add esp, 4
add edi, 0xd8
dec esi
jne 0x42fc90
push ebp
call fcn.0045df2d
mov edi, 1
add esp, 4
cmp dword [0x4998f8], edi
mov eax, 3
jne 0x42fccc
mov dword [0x4998fc], eax
mov eax, 4
or ecx, 0xffffffff
jmp 0x42fcd5
or ecx, 0xffffffff
mov dword [0x4998fc], ecx
cmp dword [0x499904], edi
jne 0x42fce5
mov dword [0x499908], eax
inc eax
jmp 0x42fceb
mov dword [0x499908], ecx
cmp dword [0x499910], edi
mov dword [0x499914], eax
je 0x42fcfe
mov dword [0x499914], ecx
mov eax, dword [0x498814]
cmp dword [0x499a48], eax
jge 0x42fd10
mov dword [0x499a48], eax
mov dword [esp + 0x234], ecx
lea ecx, [esp + 0x10]
call fcn.0046f8d0
mov ecx, dword [esp + 0x22c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret