Function at 0x10003900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010008
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10015064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [0x100160a0]
xor esi, esi
cmp byte [0x1001778c], 0
mov dword [ebp - 0x14], eax
jne 0x1000396a
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x18]
push edx
mov byte [0x1001778c], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
call sub.gdiplus.dll_GdiplusStartup
mov ebx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 0x10
je 0x100039e5
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, esi
je 0x100039dc
cmp ebx, esi
jne 0x10003989
xor eax, eax
jmp 0x100039b9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x100039a1
xor eax, eax
jmp 0x100039b7
lea eax, [esi + esi]
call fcn.10005c00
mov ecx, dword [ebp - 0x14]
mov eax, esp
push ecx
push esi
push ebx
push eax
call fcn.10003410
xor esi, esi
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x14], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
mov esi, edi
jmp 0x10003aea
xor edi, edi
mov esi, edi
jmp 0x10003aea
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10003acd
cmp eax, 2
je 0x10003acd
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
push ebx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.10003450
test al, al
je 0x10003a72
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x10018250]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10003a72
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.10005890
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x14]
push ecx
push 1
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x10003a81
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.100038b0
xor eax, eax
jmp 0x10003b18
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x10003aaf
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x18], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
jmp 0x10003ab1
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.100038b0
jmp 0x10003aea
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, esi
je 0x10003ae6
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, eax
call fcn.100034a0
jmp 0x10003ae8
xor eax, eax
mov esi, eax
test esi, esi
je 0x10003a7a
push 0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov eax, dword [esi + 4]
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x10003b0b
mov dword [esi + 8], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005059
mov esp, ebp
pop ebp
ret