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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x14
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4ea100
mov edx, dword [ebp - 0x18]
inc dword [edx]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004e6d20
cmp dword [ebp - 0x18], 0
je 0x4ea11a
mov ecx, dword [ebp - 0x18]
call fcn.00589d70
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x5dcb74
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x11], 0
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x12], 0
cmp byte [ebp + 0xc], 1
jne 0x4ea1f8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004f01d0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004e8ef0
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x4ea175
mov ecx, dword [ebp - 0x1c]
call fcn.00589d70
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x4ea186
mov edx, dword [ebp - 0x20]
inc dword [edx]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x4ea199
mov edx, dword [ebp - 0x24]
inc dword [edx]
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004e96e0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0058a7b0
cmp dword [ebp - 0x28], 0
je 0x4ea1cc
mov ecx, dword [ebp - 0x28]
call fcn.00589d70
cmp dword [ebp - 0x24], 0
je 0x4ea1da
mov ecx, dword [ebp - 0x24]
call fcn.00589d70
cmp dword [ebp - 0x20], 0
je 0x4ea1e8
mov ecx, dword [ebp - 0x20]
call fcn.00589d70
cmp dword [ebp - 4], 0
je 0x4ea206
mov ecx, dword [ebp - 4]
call fcn.00589d70
jmp 0x4ea206
push dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0058a7b0
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4ea21a
mov edx, dword [ebp - 0x2c]
inc dword [edx]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004ea9b0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0058a7b0
cmp dword [ebp - 0x30], 0
je 0x4ea247
mov ecx, dword [ebp - 0x30]
call fcn.00589d70
cmp dword [ebp - 0x2c], 0
je 0x4ea255
mov ecx, dword [ebp - 0x2c]
call fcn.00589d70
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x4ea284
mov edx, dword [ebp - 0x34]
inc dword [edx]
lea eax, [ebp - 0x14]
push eax
push 0x5c
lea eax, [ebp - 0x34]
push eax
call fcn.0056b0f0
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x4ea2a4
mov ecx, dword [ebp - 0x34]
call fcn.00589d70
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4ea2b9
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 1
jmp 0x4ea2be
mov edx, 0x5993e9
cmp byte [edx], 0x5c
jne 0x4ea2f3
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4ea2d8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x4ea2dd
mov edx, 0x5993e9
cmp byte [edx], 0x5c
jne 0x4ea2f3
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x4ea2f3
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x4ea35d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4ea308
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, 2
jmp 0x4ea30d
mov edx, 0x5993e9
cmp byte [edx], 0x3a
jne 0x4ea353
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4ea324
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x4ea329
mov eax, 0
cmp eax, 3
je 0x4ea34a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4ea340
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
jmp 0x4ea345
mov eax, 0
cmp eax, 2
jne 0x4ea353
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], 1
jmp 0x4ea35d
movzx edx, byte [ebp + 0x10]
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x10], dl
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x4ea371
mov edx, dword [ebp - 0x38]
inc dword [edx]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004e8ef0
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0058a7b0
cmp dword [ebp - 0x3c], 0
je 0x4ea39d
mov ecx, dword [ebp - 0x3c]
call fcn.00589d70
cmp dword [ebp - 0x38], 0
je 0x4ea3ab
mov ecx, dword [ebp - 0x38]
call fcn.00589d70
cmp dword [ebp + 0x14], 0
je 0x4ea457
call fcn.0056d3b0
cmp al, 0
je 0x4ea3ef
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
call fcn.0058a430
lea ecx, [ebp - 0x40]
call fcn.0058a6c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x40], 0
je 0x4ea440
mov ecx, dword [ebp - 0x40]
call fcn.00589d70
jmp 0x4ea440
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x4ea403
mov edx, dword [ebp - 0x44]
inc dword [edx]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00546e70
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.0058a690
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x48], 0
je 0x4ea432
mov ecx, dword [ebp - 0x48]
call fcn.00589d70
cmp dword [ebp - 0x44], 0
je 0x4ea440
mov ecx, dword [ebp - 0x44]
call fcn.00589d70
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4ea457
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne dl
mov eax, dword [ebp + 0x14]
mov byte [eax], dl
cmp dword [ebp - 0x10], 0
je 0x4ea46c
push 0x402120
push dword [ebp - 0x10]
call fcn.0058bbd0
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
leave
ret 0x10