Function at 0x10015800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052970
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x100743d8]
push edi
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x100743d8]
push edi
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x10015869
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [0x10074450]
mov esi, dword [ebp - 0x10]
test ecx, ecx
je 0x100158cf
mov eax, dword [0x100748e0]
test eax, eax
jne 0x100158c8
push str.GdipLoadImageFromStream
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100748e0], eax
test eax, eax
je 0x100158cf
lea ecx, [ebp - 0x2c]
push ecx
push esi
call eax
mov edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.10012bf0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x100159d5
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov ebx, eax
push ecx
push edx
mov esi, ebx
call fcn.10015d00
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x10074450]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x10015954
mov eax, dword [0x100748ec]
test eax, eax
jne 0x1001594d
push 0x100623c8
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100748ec], eax
test eax, eax
je 0x10015954
lea ecx, [ebp - 0x14]
push ecx
push edi
call eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push edx
push eax
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x2c]
call fcn.10012c70
mov edx, dword [ebp - 0x1c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call fcn.10015e90
add esp, 4
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100159d2
mov ecx, dword [0x10074450]
mov esi, eax
test ecx, ecx
je 0x100159d2
mov eax, dword [0x100748f8]
test eax, eax
jne 0x100159cf
push 0x100623dc
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100748f8], eax
test eax, eax
je 0x100159d2
push esi
call eax
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10015a2c
mov ecx, dword [0x10074450]
mov esi, eax
test ecx, ecx
je 0x10015a2c
mov eax, dword [0x100748f0]
test eax, eax
jne 0x10015a29
push str.GdipDisposeImage
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100748f0], eax
test eax, eax
je 0x10015a2c
push esi
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret