Function at 0x4069e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2ac
push 0x104
push 0x46a180
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str..scr
push 0x46a180
call fcn.0040ffaa
add esp, 8
test eax, eax
jne 0x406a24
push 0x46561c
push 0x46a180
call fcn.0040ffaa
add esp, 8
test eax, eax
je 0x406a2e
mov dword [0x46aba4], 1
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x46a180
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406a63
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.00406990
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.00406990
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.00406990
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.00406990
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.00406990
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.00406990
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 0x406b4e
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 0x406ba5
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.0040fb5d
add esp, 8
lea ecx, [esp + 0xbc]
push 0x2030
push 0x46b2a0
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.0040fe70
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [0x46b284], eax
jne 0x406bf2
push 0x2030
push 0x46b2a0
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.00406990
add esp, 0x10
lea eax, [esp + 0x10]
push esi
push eax
push 0x1dc
push 0x46b000
push ebx
call ebp
cmp dword [0x46b004], esi
je 0x406ca0
mov eax, dword [0x46b018]
mov ecx, dword [0x46b010]
mov edx, dword [0x46b014]
cmp eax, esi
mov dword [0x46aba0], ecx
mov dword [0x46adc8], edx
je 0x406c85
mov eax, dword [0x46b128]
push eax
call fcn.00405d10
mov ecx, dword [0x46aba0]
sub eax, ecx
mov ecx, dword [0x46b128]
cdq
sub eax, edx
push ecx
sar eax, 1
mov dword [0x46b1e4], eax
call fcn.00405d40
mov ecx, dword [0x46adc8]
add esp, 8
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [0x46b280], eax
jmp 0x406d3c
mov edx, dword [0x46b008]
mov eax, dword [0x46b00c]
mov dword [0x46b1e4], edx
mov dword [0x46b280], eax
jmp 0x406d3c
cmp dword [0x46b128], esi
je 0x406d12
push 0x4c
call fcn.00406420
push 0x4d
mov dword [0x46b1e4], eax
call fcn.00406420
push 1
mov dword [0x46b280], eax
call fcn.00405d10
mov ecx, eax
mov eax, dword [0x46b1e4]
cdq
xor eax, edx
push 1
sub eax, edx
sub ecx, eax
mov dword [0x46aba0], ecx
call fcn.00405d40
mov edi, dword [0x46b280]
mov ecx, eax
mov eax, edi
add esp, 8
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x46b1e4]
sub ecx, eax
mov eax, dword [0x46aba0]
sub eax, edx
sub ecx, edi
mov dword [0x46aba0], eax
mov dword [0x46adc8], ecx
jmp 0x406d3c
push esi
mov dword [0x46b1e4], esi
mov dword [0x46b280], esi
call fcn.00405d10
mov dword [0x46aba0], eax
mov eax, dword [0x46b128]
push eax
call fcn.00405d40
add esp, 8
mov dword [0x46adc8], eax
mov eax, dword [esp + 0x2c0]
cmp eax, esi
jle 0x406dc6
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00405e80
mov eax, dword [0x46b004]
add esp, 8
cmp eax, esi
je 0x406d9c
mov eax, dword [esp + 0x24]
mov edi, dword [0x46aba0]
mov ecx, dword [esp + 0x1c]
sub eax, edi
sub eax, ecx
mov edi, dword [0x46adc8]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [0x46b1e4], eax
mov eax, dword [esp + 0x28]
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [0x46b280], eax
jmp 0x406dc6
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [0x46b1e4], eax
sub edx, eax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [0x46b280], ecx
mov dword [0x46aba0], edx
mov dword [0x46adc8], eax
mov edi, dword [esp + 0x2cc]
cmp edi, esi
jle 0x406e57
mov edx, dword [esp + 0x2d0]
cmp edx, esi
jle 0x406e57
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c8]
cmp eax, 0x270f
mov dword [0x46b004], 1
mov dword [0x46b1e4], eax
mov dword [0x46b280], ecx
mov dword [0x46aba0], edi
mov dword [0x46adc8], edx
jne 0x406e57
cmp ecx, eax
jne 0x406e57
mov ecx, dword [0x46b128]
push ecx
call fcn.00405d10
sub eax, dword [0x46aba0]
cdq
sub eax, edx
mov edx, dword [0x46b128]
sar eax, 1
push edx
mov dword [0x46b1e4], eax
call fcn.00405d40
mov ecx, dword [0x46adc8]
add esp, 8
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [0x46b280], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
push ebx
call fcn.00406990
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x18], esi
jle 0x406f58
mov edx, dword [0x46b284]
mov ecx, 0x88e
xor eax, eax
lea edi, [esi + edx]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x46b284]
lea eax, [esp + 0x14]
push eax
push 4
lea edx, [esi + ecx]
push edx
push ebx
call ebp
mov ecx, dword [0x46b284]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 8]
push 8
push edx
push ebx
call ebp
mov ecx, dword [0x46b284]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 0x10]
push 8
push edx
push ebx
call ebp
mov ecx, dword [0x46b284]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [esi + ecx + 0x18]
push 4
push edx
push ebx
call ebp
mov eax, dword [0x46b284]
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 [0x46b284]
lea ecx, [esp + 0x10]
push 0
push ecx
lea eax, [esi + edx + 0x224]
push 4
push eax
push ebx
call ebp
mov eax, dword [0x46b284]
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 0x406e7b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ac
ret