Function at 0x4ce8b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x24], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x34], 0
xor eax, eax
mov byte [ebp - 0x33], al
mov byte [ebp - 0x30], 0
xor ecx, ecx
mov byte [ebp - 0x2f], cl
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x60], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x5d]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
xor edx, edx
mov dword [ebp - 0x8b], edx
mov dword [ebp - 0x87], edx
mov dword [ebp - 0x83], edx
mov word [ebp - 0x7f], dx
mov byte [ebp - 0x7d], dl
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0xffffffff
je 0x4ce9c9
cmp dword [ebp - 0x98], 0
jne 0x4ce9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4ce9df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4ce9e9
mov eax, 0x30000010
jmp 0x4cef5a
mov eax, 0x30000001
jmp 0x4cef5a
cmp dword [ebp + 0xc], 0
jne 0x4cea08
mov dword [ebp - 0x90], 0x30000002
jmp 0x4cef23
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0ded
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4cea30
jmp 0x4cef23
mov dword [ebp - 0x2c], 0x10
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4cea6a
jmp 0x4cef23
mov eax, dword [ebp - 0x4c]
shl eax, 3
push eax
call fcn.0048ab32
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x4c]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00486aa0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
shl eax, 3
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4ceaca
jmp 0x4cef23
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x70], eax
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4ceb08
mov dword [ebp - 0x90], 0x30000003
jmp 0x4cef23
push 2
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
movsx eax, byte [ebp - 0x30]
cmp eax, 0x52
jne 0x4ceb4d
movsx ecx, byte [ebp - 0x2f]
cmp ecx, 0x53
je 0x4ceb5c
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 0xc
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
imul edx, edx, 0x278
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0048ab32
add esp, 4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4cebb4
mov dword [ebp - 0x90], 0x3000000d
jmp 0x4cef23
mov ecx, dword [ebp - 0x6c]
push ecx
push 0
mov edx, dword [ebp - 0x74]
push edx
call fcn.00486aa0
add esp, 0xc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004d3a00
mov dword [ebp - 0x78], 0
jmp 0x4cebe7
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax]
jge 0x4cec45
mov edx, dword [ebp - 0x78]
imul edx, edx, 0x278
mov eax, dword [ebp - 0x74]
lea ecx, [eax + edx + 0x278]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x2c], 0x270
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 8
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004d3a7a
jmp 0x4cebde
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x4cedd3
push 0x20
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00486aa0
add esp, 0xc
push 2
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
movsx eax, byte [ebp - 0x30]
cmp eax, 0x47
jne 0x4cecad
movsx ecx, byte [ebp - 0x2f]
cmp ecx, 0x46
je 0x4cecbc
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
push 2
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
movsx ecx, byte [ebp - 0x30]
cmp ecx, 0x49
jne 0x4ced24
movsx edx, byte [ebp - 0x2f]
cmp edx, 0x50
je 0x4ced33
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004d0c86
push 2
push 0
lea edx, [ebp - 0x30]
push edx
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004d0c86
movsx edx, byte [ebp - 0x30]
cmp edx, 0x4d
jne 0x4ced9e
movsx eax, byte [ebp - 0x2f]
cmp eax, 0x54
je 0x4cedad
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 0x10
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
cmp dword [ebp + 0x14], 0
je 0x4cee7e
push 0x10
push 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.00486aa0
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x20], 0xffff
je 0x4cee02
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x24], 0
jne 0x4cee07
jmp 0x4cef23
push 2
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004d0c86
movsx eax, byte [ebp - 0x30]
cmp eax, 0x52
jne 0x4cee4c
movsx ecx, byte [ebp - 0x2f]
cmp ecx, 0x47
je 0x4cee5b
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 0x10
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
cmp dword [ebp + 0x18], 0
je 0x4cef23
push 0x10
push 0
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00486aa0
add esp, 0xc
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x28], 0xffff
je 0x4ceead
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x2c], 0
jne 0x4ceeaf
jmp 0x4cef23
push 2
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x2c], 2
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d0c86
movsx ecx, byte [ebp - 0x30]
cmp ecx, 0x44
jne 0x4ceef4
movsx edx, byte [ebp - 0x2f]
cmp edx, 0x43
je 0x4cef00
mov dword [ebp - 0x90], 0x30000006
jmp 0x4cef23
mov dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004d0c86
cmp dword [ebp - 0x28], 0
je 0x4cef35
mov edx, dword [ebp - 0x28]
push edx
call fcn.00488be3
add esp, 4
cmp dword [ebp - 0x98], 0xffffffff
je 0x4cef54
cmp dword [ebp - 0x98], 0
je 0x4cef54
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x90]
pop edi
mov esp, ebp
pop ebp
ret 0x14