Function at 0x406900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2ac
push 0x104
push 0x46a140
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str..scr
push 0x46a140
call fcn.0040feaa
add esp, 8
test eax, eax
jne 0x406944
push 0x46561c
push 0x46a140
call fcn.0040feaa
add esp, 8
test eax, eax
je 0x40694e
mov dword [0x46ab64], 1
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x46a140
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406983
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
push 2
push 0
push 0
push ebx
call fcn.004068b0
push 1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
push 0xffffffffffffffff
push 0xfffffffffffffffd
rep stosd dword es:[edi], eax
push ebx
call fcn.004068b0
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0x20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push 0
push eax
push 3
push ecx
push ebx
call ebp
push 1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x80]
push 0xffffffffffffffff
push 0xfffffffffffffffa
rep stosd dword es:[edi], eax
push ebx
call fcn.004068b0
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x7c]
push 0
push edx
push 3
push eax
push ebx
call ebp
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff9
push ebx
call fcn.004068b0
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push ecx
push 4
push edx
push ebx
call ebp
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff4
push ebx
call fcn.004068b0
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push 0
push eax
push 8
push ecx
push ebx
call ebp
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff0
push ebx
call fcn.004068b0
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push 0
push edx
push 8
push eax
push ebx
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x406a6e
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
mov ecx, 3
mov edi, 0x465618
lea esi, [esp + 0x3c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406ac5
lea eax, [esp + 0xbc]
push str.Wrong_EXE_version_or_Damaged_EXE_file__n_nThis_EXE_is_either_damaged_incomplete_OR_created_with_a_non_compatible_IrfanView_PlugIn_version._nPlease_re_create_this_EXE_using_latest_IrfanView_PlugIns.
push eax
call fcn.0040fa5d
add esp, 8
lea ecx, [esp + 0xbc]
push 0x2030
push 0x46b260
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 3
push eax
call fcn.0040fd70
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [0x46b244], eax
jne 0x406b12
push 0x2030
push 0x46b260
push str.Cant_allocate_memory_
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push esi
push ecx
push edx
push ebx
call fcn.004068b0
add esp, 0x10
lea eax, [esp + 0x10]
push esi
push eax
push 0x1dc
push 0x46afc0
push ebx
call ebp
cmp dword [0x46afc4], esi
je 0x406bc0
mov eax, dword [0x46afd8]
mov ecx, dword [0x46afd0]
mov edx, dword [0x46afd4]
cmp eax, esi
mov dword [0x46ab60], ecx
mov dword [0x46ad88], edx
je 0x406ba5
mov eax, dword [0x46b0e8]
push eax
call fcn.00405c30
mov ecx, dword [0x46ab60]
sub eax, ecx
mov ecx, dword [0x46b0e8]
cdq
sub eax, edx
push ecx
sar eax, 1
mov dword [0x46b1a4], eax
call fcn.00405c60
mov ecx, dword [0x46ad88]
add esp, 8
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [0x46b240], eax
jmp 0x406c5c
mov edx, dword [0x46afc8]
mov eax, dword [0x46afcc]
mov dword [0x46b1a4], edx
mov dword [0x46b240], eax
jmp 0x406c5c
cmp dword [0x46b0e8], esi
je 0x406c32
push 0x4c
call fcn.00406340
push 0x4d
mov dword [0x46b1a4], eax
call fcn.00406340
push 1
mov dword [0x46b240], eax
call fcn.00405c30
mov ecx, eax
mov eax, dword [0x46b1a4]
cdq
xor eax, edx
push 1
sub eax, edx
sub ecx, eax
mov dword [0x46ab60], ecx
call fcn.00405c60
mov edi, dword [0x46b240]
mov ecx, eax
mov eax, edi
add esp, 8
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x46b1a4]
sub ecx, eax
mov eax, dword [0x46ab60]
sub eax, edx
sub ecx, edi
mov dword [0x46ab60], eax
mov dword [0x46ad88], ecx
jmp 0x406c5c
push esi
mov dword [0x46b1a4], esi
mov dword [0x46b240], esi
call fcn.00405c30
mov dword [0x46ab60], eax
mov eax, dword [0x46b0e8]
push eax
call fcn.00405c60
add esp, 8
mov dword [0x46ad88], eax
mov eax, dword [esp + 0x2c0]
cmp eax, esi
jle 0x406ce6
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00405da0
mov eax, dword [0x46afc4]
add esp, 8
cmp eax, esi
je 0x406cbc
mov eax, dword [esp + 0x24]
mov edi, dword [0x46ab60]
mov ecx, dword [esp + 0x1c]
sub eax, edi
sub eax, ecx
mov edi, dword [0x46ad88]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [0x46b1a4], eax
mov eax, dword [esp + 0x28]
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [0x46b240], eax
jmp 0x406ce6
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [0x46b1a4], eax
sub edx, eax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [0x46b240], ecx
mov dword [0x46ab60], edx
mov dword [0x46ad88], eax
mov edi, dword [esp + 0x2cc]
cmp edi, esi
jle 0x406d77
mov edx, dword [esp + 0x2d0]
cmp edx, esi
jle 0x406d77
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c8]
cmp eax, 0x270f
mov dword [0x46afc4], 1
mov dword [0x46b1a4], eax
mov dword [0x46b240], ecx
mov dword [0x46ab60], edi
mov dword [0x46ad88], edx
jne 0x406d77
cmp ecx, eax
jne 0x406d77
mov ecx, dword [0x46b0e8]
push ecx
call fcn.00405c30
sub eax, dword [0x46ab60]
cdq
sub eax, edx
mov edx, dword [0x46b0e8]
sar eax, 1
push edx
mov dword [0x46b1a4], eax
call fcn.00405c60
mov ecx, dword [0x46ad88]
add esp, 8
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [0x46b240], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
push ebx
call fcn.004068b0
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x18], esi
jle 0x406e78
mov edx, dword [0x46b244]
mov ecx, 0x88e
xor eax, eax
lea edi, [esi + edx]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x46b244]
lea eax, [esp + 0x14]
push eax
push 4
lea edx, [esi + ecx]
push edx
push ebx
call ebp
mov ecx, dword [0x46b244]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 8]
push 8
push edx
push ebx
call ebp
mov ecx, dword [0x46b244]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 0x10]
push 8
push edx
push ebx
call ebp
mov ecx, dword [0x46b244]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 0x18]
push 4
push edx
push ebx
call ebp
mov eax, dword [0x46b244]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edx, dword [esi + eax + 0x18]
lea eax, [esi + eax + 0x1c]
add edx, edx
push edx
push eax
push ebx
call ebp
mov edx, dword [0x46b244]
lea ecx, [esp + 0x10]
push 0
push ecx
lea eax, [esi + edx + 0x224]
push 4
push eax
push ebx
call ebp
mov eax, dword [0x46b244]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edx, dword [esi + eax + 0x224]
lea eax, [esi + eax + 0x228]
add edx, edx
push edx
push eax
push ebx
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
add esi, 0x2238
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x406d9b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ac
ret