Function at 0x4351b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0x8c
call fcn.00668220
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4351e5
push 0
push str.Out_of_memory.
call fcn.0055d620
add esp, 8
xor eax, eax
jmp 0x43562f
cmp dword [ebp + 0xc], 0
je 0x43520c
push 0
push 0
push 3
push 0
push 1
push Ordinal_2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x11c], eax
jmp 0x43522b
push 0
push 0
push 3
push 0
push 1
push Ordinal_2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x11c]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x6c], 0xffffffff
jne 0x43529e
cmp dword [ebp + 0xc], 0
je 0x435267
mov edx, dword [ebp + 8]
push edx
push str.Failed_to_open_image_file__ws._n
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x120], eax
jmp 0x435286
mov ecx, dword [ebp + 8]
push ecx
push str.Failed_to_open_image_file__s._n
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x120], eax
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0055d620
add esp, 8
xor eax, eax
jmp 0x43562f
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0xda01
jne 0x4353ab
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 2]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 2]
and ecx, 0xff00
sar ecx, 8
or edx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 2], dx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 4]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 4]
and ecx, 0xff00
sar ecx, 8
or edx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 4], dx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 6]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
and ecx, 0xff00
sar ecx, 8
or edx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 6], dx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 8]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 8]
and ecx, 0xff00
sar ecx, 8
or edx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 8], dx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 0xa]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 0xa]
and ecx, 0xff00
sar ecx, 8
or edx, ecx
mov eax, dword [ebp - 8]
mov word [eax + 0xa], dx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 6]
shl edx, 8
push edx
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 8
push eax
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 8
push eax
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 8
push eax
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x70], 0
je 0x43543b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x74], 0
je 0x43543b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x78], 0
je 0x43543b
mov edx, dword [ebp - 8]
cmp dword [edx + 0x7c], 0
jne 0x435451
push 0
push str.Out_of_memory.
call fcn.0055d620
add esp, 8
xor eax, eax
jmp 0x43562f
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 2]
and ecx, 0xff00
cmp ecx, 0x100
jne 0x43562c
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 8]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 0xa]
imul eax, edx
shl eax, 2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00668220
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x84], 0
je 0x4354c9
mov eax, dword [ebp - 8]
cmp dword [eax + 0x88], 0
jne 0x4354df
push 0
push str.Out_of_memory.
call fcn.0055d620
add esp, 8
xor eax, eax
jmp 0x43562f
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx + 0x200]
mov eax, dword [ebp - 8]
mov dword [eax + 0x80], edx
push 0
push 0
push 0x200
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x84]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0xda01
jne 0x43562c
mov edx, dword [ebp - 4]
shr edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x84]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
test ecx, ecx
je 0x43562c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 0xc]
and eax, 0xff00
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xff0000
shr ecx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff000000
shr eax, 0x18
or ecx, eax
or edx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 0xc]
and eax, 0xff00
shl eax, 8
or edx, eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xff0000
shr ecx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff000000
shr eax, 0x18
or ecx, eax
or edx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
jmp 0x43557f
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret