Function at 0x4772c0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x47734c
lea ecx, [edi + 8]
push 0x83e
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x4773e0
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x477340
mov ecx, dword [edi + 4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x477340
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x477340
mov eax, dword [esp + 0x10]
test eax, eax
je 0x477340
mov ecx, dword [eax]
push 0
push ebp
push ebx
push eax
call dword [ecx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4773de
lea eax, [edi + 8]
push 0x4fbb14
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4773e0
push 2
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, ebp
jbe 0x4773d4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4773d4
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4773cb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4773cb
mov ecx, dword [eax]
push 0
push ebx
push ebp
push eax
call dword [ecx + 0x10]
push ebp
call fcn.004d2909
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ebp
cmp eax, ebp
mov word [edi + 8], bp
je 0x477429
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x477417
mov ecx, dword [esp + 0x10]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x4dfe54
mov dword [eax], ebp
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x477419
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [edi + 0x21c], esi
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [edi + 0x21c]
cmp esi, ebp
je 0x477494
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x47744c
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
mov esi, dword [edi + 0x21c]
mov dword [edi + 0x210], edx
lea eax, [esp + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x477475
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x210]
mov dword [edi + 0x214], edx
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
setg al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret