Function at 0x4295d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444078
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x5c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
mov edi, eax
inc edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp + 0xc], ebx
jne 0x42964a
mov esi, 0x443ffc
mov eax, dword [esi]
cmp byte [eax], 0x30
jne 0x429622
inc eax
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x42963f
inc ebx
add esi, 4
cmp esi, 0x444010
jb 0x42961a
jmp 0x429651
test ebx, ebx
je 0x42964a
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x42966b
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 3
push connect
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42969e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004298d0
add esp, 4
test eax, eax
jne 0x4296c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0xa00000
jbe 0x4296f0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
jne 0x429723
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push edi
call esi
xor eax, eax
cmp ebx, eax
jne 0x429751
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebx + 0x3c]
add ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ebx
xor edx, edx
mov dx, word [ebx + 0x14]
lea eax, [edx + ebx + 0x18]
mov dword [ebp - 0x48], eax
cmp dword [ebx], 0x4550
jne 0x42987f
cmp word [ebx + 0x5c], 1
je 0x42987f
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x42987f
mov ax, word [ebx + 6]
test ax, ax
je 0x42987f
mov ecx, 3
mov edi, 0x45f024
lea esi, [ebx - 0x10]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x42986d
mov ecx, dword [ebp - 0x48]
push ecx
push edx
and eax, 0xffff
push eax
call fcn.00414da0
add esp, 0xc
test eax, eax
jne 0x42986d
cmp word [ebx + 6], 2
jne 0x4297ef
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0x7865742e
je 0x4297ef
mov dword [ebp - 0x30], 1
jmp 0x429886
push 0x46d2c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x429816
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x6164722e
jne 0x429816
mov dword [ebp - 0x30], 1
jmp 0x429886
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x429838
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x42982f
cmp eax, dword [ebx + 0x50]
jbe 0x429838
mov dword [ebp - 0x30], 1
jmp 0x429886
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x50], eax
cmp eax, dword [ebx + 0x50]
ja 0x42984d
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x429886
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00414ea0
add esp, 0x10
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
je 0x429886
mov dword [ebp - 0x30], 1
jmp 0x429886
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4298b9
mov edx, dword [ebp + 8]
push edx
call fcn.0041e770
mov ecx, eax
call fcn.0041eb60
test eax, eax
je 0x4298b9
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret