Function at 0x41e2e0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], 1
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebx + 0x348], eax
mov eax, dword [ebp + 0x18]
or ecx, 0xffffffff
mov dword [ebx + 0x470], eax
xor eax, eax
mov dword [ebx + 0x2e0], ecx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebx + 0x2e4], edx
mov eax, ecx
mov esi, edi
lea edi, [ebx + 0x10]
mov dword [ebx + 0x300], edx
shr ecx, 2
mov dword [ebx + 0x304], edx
mov dword [ebx + 0x308], edx
mov dword [ebx + 0x30c], edx
mov dword [ebx + 0x310], edx
mov dword [ebx + 0x314], edx
mov dword [ebx + 0x318], edx
mov dword [ebx + 0x46c], edx
mov dword [ebx + 0x474], 0x2000080
mov dword [ebx], 0x42d02c
mov dword [ebp - 4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x14]
cmp edi, edx
je 0x41e3c2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebx + 0x178]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 0x10], esi
mov esi, edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41e3d1
mov ecx, 0x5a
xor eax, eax
lea edi, [ebx + 0x178]
rep stosd dword es:[edi], eax
mov ecx, 0xa
xor eax, eax
lea edi, [ebx + 0x320]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x2e8]
xor ecx, ecx
lea edi, [ebx + 0x350]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [ebx + 0x2f8]
mov dword [ebx + 0x2f8], ecx
mov dword [eax + 4], ecx
lea eax, [ebx + 0x2f0]
mov dword [ebx + 0x2f0], ecx
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x34c]
xor eax, eax
mov dword [ecx], edx
mov ecx, 0x47
rep stosd dword es:[edi], eax
cmp dword [0x43258c], edx
jne 0x41e42f
call fcn.0041d630
mov esi, dword [0x432580]
xor edx, edx
cmp esi, 1
lea eax, [ebx + 0x10]
sete dl
push eax
mov dword [ebx + 0x308], edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebx + 0x2e4], eax
jne 0x41e462
mov dword [ebx + 0x2e4], 0
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
test eax, eax
je 0x41e482
push eax
call fcn.00420ad0
add esp, 4
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
mov esi, dword [ebx + 0x308]
mov dword [ebx + 0x314], eax
test esi, esi
je 0x41e4f0
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x41e4b0
mov ecx, dword [eax + 0x338]
test ecx, ecx
je 0x41e4b0
mov dword [ebx + 0x474], 0
test esi, esi
je 0x41e4f0
mov eax, dword [0x43258c]
test eax, eax
jne 0x41e4c2
call fcn.0041d630
cmp dword [0x432584], 4
jbe 0x41e4ec
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x41e501
mov ecx, dword [eax + 0x334]
test ecx, ecx
je 0x41e501
mov eax, dword [ebx + 0x474]
or eax, 0x100000
jmp 0x41e4fb
test esi, esi
jne 0x41e501
mov eax, dword [ebx + 0x474]
or eax, 0x8000000
mov dword [ebx + 0x474], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x41e50e
mov dword [ebx + 8], eax
jmp 0x41e542
mov ecx, ebx
call fcn.0041e780
mov esi, dword [ebx + 0x2e0]
cmp esi, 0xffffffff
je 0x41e542
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, 0xffffffff
mov dword [ebx + 8], eax
je 0x41e542
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x2e0], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18