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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2970
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0xc], 0
jne 0x47053b
mov dword [ebp - 0x3c], 0
jmp 0x4704e6
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 5
jae 0x470539
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax*4 + 0x4b2934]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
movsx eax, byte [edx]
cmp eax, 0x30
jne 0x47050d
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00402980
add esp, 8
test eax, eax
jne 0x470537
cmp dword [ebp - 0x3c], 0
je 0x47052e
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x34], 1
jmp 0x470539
jmp 0x4704dd
jmp 0x470542
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0
jne 0x47054f
xor eax, eax
jmp 0x4707d4
push 0
push 0
push 3
push 0
push 3
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x470578
xor eax, eax
jmp 0x4707d4
mov edx, dword [ebp + 8]
push edx
call fcn.004707e5
add esp, 4
test eax, eax
jne 0x47059c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4707d4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xa00000
jbe 0x4705bd
xor eax, eax
jmp 0x4707d4
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x4705eb
xor eax, eax
jmp 0x4707d4
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
jne 0x470617
xor eax, eax
jmp 0x4707d4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x58]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx], 0x4550
jne 0x470679
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 0x5c]
cmp ecx, 1
je 0x470679
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x28], 0
je 0x470679
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x470685
mov dword [ebp - 0x30], 0
jmp 0x470786
push 0xc
push 0x51d328
mov edx, dword [ebp - 0x58]
sub edx, 0x10
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4706bb
mov eax, dword [ebp - 0x48]
push eax
push 0
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov dx, word [ecx + 6]
push edx
call fcn.0042b100
add esp, 0xc
test eax, eax
je 0x4706c7
mov dword [ebp - 0x30], 1
jmp 0x470786
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 2
jne 0x4706ec
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0x7865742e
je 0x4706ec
mov dword [ebp - 0x30], 1
jmp 0x470786
push 0x51d338
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x470713
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x6164722e
jne 0x470713
mov dword [ebp - 0x30], 1
jmp 0x470786
cmp dword [ebp - 0x28], 0
je 0x47073f
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x470736
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ecx + 0x50]
jbe 0x47073f
mov dword [ebp - 0x30], 1
jmp 0x470786
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
cmp eax, dword [edx + 0x50]
ja 0x47075f
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x58], 0
je 0x470786
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.0042b33c
add esp, 0x10
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
je 0x470786
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4707a6
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x30], 0
je 0x4707d1
mov edx, dword [ebp + 8]
push edx
call fcn.00453370
mov ecx, eax
call fcn.00453794
test eax, eax
je 0x4707d1
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