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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4cf8
push 0x4a8984
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.0040a210
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 0x46cfeb
mov dword [ebp - 0x3c], 0
jmp 0x46cf96
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 5
jae 0x46cfe9
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax*4 + 0x4b4cbc]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
movsx eax, byte [edx]
cmp eax, 0x30
jne 0x46cfbd
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.00402af0
add esp, 8
test eax, eax
jne 0x46cfe7
cmp dword [ebp - 0x3c], 0
je 0x46cfde
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x34], 1
jmp 0x46cfe9
jmp 0x46cf8d
jmp 0x46cff2
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0
jne 0x46cfff
xor eax, eax
jmp 0x46d284
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x46d028
xor eax, eax
jmp 0x46d284
mov edx, dword [ebp + 8]
push edx
call fcn.0046d295
add esp, 4
test eax, eax
jne 0x46d04c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x46d284
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 0x46d06d
xor eax, eax
jmp 0x46d284
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 0x46d09b
xor eax, eax
jmp 0x46d284
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 0x46d0c7
xor eax, eax
jmp 0x46d284
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 0x46d129
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 0x5c]
cmp ecx, 1
je 0x46d129
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x28], 0
je 0x46d129
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x46d135
mov dword [ebp - 0x30], 0
jmp 0x46d236
push 0xc
push 0x525e04
mov edx, dword [ebp - 0x58]
sub edx, 0x10
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x46d16b
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.0042edcb
add esp, 0xc
test eax, eax
je 0x46d177
mov dword [ebp - 0x30], 1
jmp 0x46d236
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 2
jne 0x46d19c
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0x7865742e
je 0x46d19c
mov dword [ebp - 0x30], 1
jmp 0x46d236
push 0x525e14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x46d1c3
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x6164722e
jne 0x46d1c3
mov dword [ebp - 0x30], 1
jmp 0x46d236
cmp dword [ebp - 0x28], 0
je 0x46d1ef
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x46d1e6
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ecx + 0x50]
jbe 0x46d1ef
mov dword [ebp - 0x30], 1
jmp 0x46d236
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 0x46d20f
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x58], 0
je 0x46d236
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.0042f007
add esp, 0x10
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
je 0x46d236
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x46d256
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x30], 0
je 0x46d281
mov edx, dword [ebp + 8]
push edx
call fcn.0044fae0
mov ecx, eax
call fcn.0044ff04
test eax, eax
je 0x46d281
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