Function at 0x4068e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c630
push 0x40b6fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x250], 0xffffffff
cmp dword [0x41ff9c], 0xffffffff
jne 0x406965
mov eax, dword [ebp + 8]
push eax
call fcn.004063a0
add esp, 4
xor eax, eax
jmp 0x407139
lea ecx, [ebp - 0x290]
push ecx
mov edx, dword [0x41ff9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x30], 0
jne 0x4069b8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004063a0
add esp, 4
mov edx, dword [0x41ff9c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41ff9c], 0xffffffff
xor eax, eax
jmp 0x407139
cmp dword [ebp - 0x248], 0xffffffff
je 0x4069ca
cmp dword [ebp - 0x270], 0
je 0x406a0a
push 0x30
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x40ee70]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
mov ecx, dword [0x41ff9c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41ff9c], 0xffffffff
xor eax, eax
jmp 0x407139
mov edx, dword [0x41fb3c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x248], 0
je 0x406a78
mov dword [ebp - 0x244], 0
push 0
mov eax, dword [ebp - 0x248]
push eax
push 0
push 2
push 0
mov ecx, dword [0x41ff9c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x406a76
mov edx, dword [ebp - 0x248]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a8f
lea edx, [ebp - 0x29c]
mov dword [ebp - 0x244], edx
xor eax, eax
mov ecx, dword [ebp - 0x244]
mov word [ecx], ax
mov edx, dword [0x41ff9c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41ff9c], 0xffffffff
cmp dword [ebp - 0x244], 0
jne 0x406ae4
mov eax, dword [0x41fa00]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x40ee70]
push edx
mov eax, dword [0x40ee7c]
push eax
mov ecx, dword [0x41efb4]
push ecx
call fcn.004080e0
add esp, 0x14
xor eax, eax
jmp 0x407139
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x258], edx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x406c77
mov eax, dword [ebp - 0x244]
movzx ecx, word [eax]
mov dword [ebp - 0x2a0], ecx
cmp dword [ebp - 0x2a0], 0xbbef
je 0x406b8d
cmp dword [ebp - 0x2a0], 0xfeff
je 0x406b39
cmp dword [ebp - 0x2a0], 0xfffe
je 0x406b63
jmp 0x406be9
mov dword [ebp - 0x298], 1
mov dword [ebp - 0x250], 1
mov edx, dword [ebp - 0x248]
shr edx, 1
sub edx, 1
mov dword [ebp - 0x24c], edx
jmp 0x406c77
mov dword [ebp - 0x298], 1
mov dword [ebp - 0x250], 2
mov eax, dword [ebp - 0x248]
shr eax, 1
sub eax, 1
mov dword [ebp - 0x24c], eax
jmp 0x406c77
cmp dword [ebp - 0x248], 2
jbe 0x406be9
mov ecx, dword [ebp - 0x244]
movzx edx, byte [ecx + 2]
cmp edx, 0xbf
jne 0x406be9
mov dword [ebp - 0x294], 1
mov dword [ebp - 0x25c], 0xfde9
mov dword [ebp - 0x250], 3
mov eax, dword [ebp - 0x244]
add eax, 3
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x248]
sub ecx, 3
mov dword [ebp - 0x248], ecx
jmp 0x406c77
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.004029b0
add esp, 8
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
je 0x406c28
mov dword [ebp - 0x250], 1
mov ecx, dword [ebp - 0x248]
shr ecx, 1
mov dword [ebp - 0x24c], ecx
jmp 0x406c77
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00402a50
add esp, 8
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
je 0x406c63
mov dword [ebp - 0x250], 3
mov dword [ebp - 0x25c], 0xfde9
jmp 0x406c77
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x25c], 0
cmp dword [ebp - 0x298], 0
jne 0x406ca7
push 0
push 0
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x258]
push edx
push 0
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x24c], eax
push 0
push 0
push 0xb
mov ecx, dword [0x41efb8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb1
mov edx, dword [0x41efb8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb7
mov eax, dword [0x41efb8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
mov ecx, dword [ebp - 0x24c]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [0x41fd4c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x406da3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call fcn.004067e0
add esp, 4
mov eax, dword [0x41fa00]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [0x40ee78]
push edx
mov eax, dword [0x40ee7c]
push eax
mov ecx, dword [0x41efb4]
push ecx
call fcn.004080e0
add esp, 0x14
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x29c]
cmp edx, eax
je 0x406d74
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push 0
push 0xb
mov edx, dword [0x41efb8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2a4]
jmp 0x407139
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x298], 0
je 0x406e3d
mov ecx, dword [ebp - 0x244]
movzx edx, word [ecx]
cmp edx, 0xfeff
jne 0x406def
mov eax, dword [ebp - 0x24c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x406e3b
mov eax, dword [ebp - 0x244]
movzx ecx, word [eax]
cmp ecx, 0xfffe
jne 0x406e1f
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x244]
add eax, 2
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00406340
add esp, 0xc
jmp 0x406e3b
mov edx, dword [ebp - 0x24c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x406e6b
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x258]
push edx
push 0
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x250]
mov dword [0x40ee54], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x406ebc
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x29c]
cmp eax, ecx
je 0x406ed9
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x28], 0
je 0x406f9e
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x406f04
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24c]
jae 0x406f26
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
test edx, edx
jne 0x406f24
mov eax, 0x20
mov ecx, dword [ebp - 0x20]
mov word [ecx], ax
jmp 0x406ef2
xor edx, edx
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
cmp eax, 0x2e
jne 0x406f88
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
cmp eax, 0x4c
jne 0x406f88
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x28], ecx
cmp eax, 0x4f
jne 0x406f88
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
cmp eax, 0x47
jne 0x406f88
mov dword [ebp - 0x2a8], 1
jmp 0x406f92
mov dword [ebp - 0x2a8], 0
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x254], ecx
cmp dword [ebp - 0x1c], 0
je 0x406fb6
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [ebp - 0x1c]
mov dword [0x41fd4c], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x41fb40
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
push edx
call fcn.00407b80
add esp, 4
mov dword [0x40ee40], 0
mov dword [0x41efc0], 1
push 0
mov eax, dword [0x41fd4c]
push eax
push 0xbc
mov ecx, dword [0x41efb8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41efc0], 2
jne 0x407065
mov edx, dword [0x41fa00]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x41efc0], 0
push 0x30
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x40ee78]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
push 0
call fcn.004067e0
add esp, 4
push 0
push 1
push 0xb
mov ecx, dword [0x41efb8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x407139
mov dword [0x41efc0], 0
push 0
push 0
push 0xc5
mov edx, dword [0x41efb8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x254], 0
je 0x4070cd
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
push 0xb1
mov edx, dword [0x41efb8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb7
mov eax, dword [0x41efb8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
call fcn.00407150
add esp, 4
push 1
push 0
push 0xbe
push 0x115
mov ecx, dword [0x41efb8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
mov edx, dword [0x41efb4]
push edx
call dword [sym.imp.USER32.dll_SetScrollPos]
push 0
push 1
push 0xb
mov eax, dword [0x41efb8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
mov ecx, dword [0x41efb8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x41efb8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x41fa00]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
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