Function at 0x425150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4951c0]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp dword [0x4963a8], 0
mov eax, dword [esp + 0x12c]
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov esi, dword [esp + 0x134]
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x24], ebp
je 0x425259
push 0x47f5c8
push eax
call fcn.00408bd7
add esp, 8
cmp dword [0x58fa5c], 0
mov dword [0x54c910], eax
je 0x4251af
inc esi
cmp dword [0x58fa60], 0
je 0x4251bb
add esi, 2
push 0
push esi
push eax
call fcn.0040a3af
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, 0xffffffff
je 0x4251e2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4251fd
test esi, esi
je 0x4251ed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x54c910]
push eax
call fcn.00409014
add esp, 4
jmp 0x425259
mov ecx, dword [0x54c910]
push ecx
push edi
push 1
push eax
call fcn.00408e8e
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x54c910]
push edx
call fcn.00409014
add esp, 4
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x425259
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x47b55c
push 0
push 0
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jge 0x4252fd
push 0x49a218
lea eax, [esp + 0x2c]
push str._sdm.jpg
push eax
mov dword [0x4963a8], 0
call fcn.004081b3
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x47f5d8
push ecx
call fcn.00408bd7
add esp, 8
mov dword [0x54c90c], eax
test ebx, ebx
jbe 0x4252c4
mov esi, ebx
jmp 0x4252a0
mov edx, dword [0x54c910]
push edx
call fcn.004086d9
mov ecx, dword [0x54c90c]
add esp, 4
push ecx
push eax
call fcn.0040afdc
add esp, 8
sub esi, 1
jne 0x4252a0
mov edx, dword [0x54c910]
push edx
call fcn.00409014
mov eax, dword [0x54c90c]
add esp, 4
push eax
call fcn.00409014
add esp, 4
push ebp
lea eax, [esp + 0x2c]
call fcn.00424e30
lea ecx, [esp + 0x28]
push ecx
call fcn.004087dd
add esp, 4
jmp 0x4253ba
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [0x498010]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0x58
push ecx
call edi
mov edx, dword [0x498010]
push 0x5a
push edx
mov ebp, eax
call edi
push 0x9ec
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x2c], eax
call esi
mov edi, eax
mov eax, dword [esp + 0x20]
push 0x9ec
push eax
push ebx
call esi
mov ebx, dword [esp + 0x24]
mov esi, eax
push esi
push edi
mov eax, ebx
call fcn.004023a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0
mov edx, esi
neg edx
push edx
mov edx, dword [ebx + 0x218]
push edi
push esi
push 0
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407f40
add esp, 0x120
ret 0xc