Function at 0x10035970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
push 1
call fcn.10035380
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x10035a09
jmp 0x10035d90
push 0x10067eec
push 1
push dword [ebp + 0xc]
call fcn.1005aae0
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
call fcn.10059510
test eax, eax
sete al
shr eax, 1
sbb eax, eax
mov dword [ebp - 0x54], eax
push dword [ebp - 0x50]
call fcn.1005a790
cmp dword [ebp - 0x54], 0
je 0x10035a8f
push 0xffffffffffffffff
push 2
push dword [ebp + 0xc]
call fcn.1005ab80
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
call fcn.10059ce0
sub esp, 4
fistp dword [esp]
pop word [ebp - 0x18]
add esp, 2
push dword [ebp - 0x58]
call fcn.1005a790
movzx eax, word [ebp - 0x18]
and eax, 0xffff
movzx eax, ax
mov dword [ebp - 0x1c], eax
push 0xa
mov ax, word [ebp - 0x1c]
movzx eax, ax
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceW
mov dword [ebp - 0x10], eax
jmp 0x10035a9f
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10035d82
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10035d82
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10035d82
push dword [ebp - 0x20]
push 2
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10035d82
push dword [ebp - 0x28]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10035d7a
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x28]
call sub.ole32.dll_CreateStreamOnHGlobal
test eax, eax
jne 0x10035d72
cmp dword [ebp - 0x24], 0
je 0x10035d72
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipCreateBitmapFromStream
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call sub.gdiplus.dll_GdipGetImageWidth
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call sub.gdiplus.dll_GdipGetImageHeight
mov eax, dword [ebp + 0x10]
test eax, eax
setg al
shr eax, 1
sbb eax, eax
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x64
setl bl
shr ebx, 1
sbb ebx, ebx
and eax, ebx
je 0x10035b89
fild dword [ebp + 0x10]
fdiv qword [0x10069ca8]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x48]
fld dword [0x10069a40]
fcompi st(1)
fstp st(0)
setne bl
shr ebx, 1
sbb ebx, ebx
mov eax, dword [ebp + 0x14]
test eax, eax
setne al
shr eax, 1
sbb eax, eax
or ebx, eax
je 0x10035d36
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x58], eax
jmp 0x10035d2a
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x5c], eax
jmp 0x10035d1b
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 8]
call sub.gdiplus.dll_GdipBitmapGetPixel
cmp dword [ebp + 0x10], 0
jle 0x10035c8c
movzx eax, byte [ebp - 0x3e]
neg eax
add eax, 0xff
push eax
fild dword [esp]
add esp, 4
fmul dword [ebp - 0x48]
movzx eax, byte [ebp - 0x3e]
push eax
fild dword [esp]
add esp, 4
fxch st(1)
faddp st(1)
sub esp, 4
fistp dword [esp]
mov al, byte [esp]
mov byte [ebp - 0x3e], al
add esp, 4
movzx eax, byte [ebp - 0x3f]
neg eax
add eax, 0xff
push eax
fild dword [esp]
add esp, 4
fmul dword [ebp - 0x48]
movzx eax, byte [ebp - 0x3f]
push eax
fild dword [esp]
add esp, 4
fxch st(1)
faddp st(1)
sub esp, 4
fistp dword [esp]
mov al, byte [esp]
mov byte [ebp - 0x3f], al
add esp, 4
movzx eax, byte [ebp - 0x40]
neg eax
add eax, 0xff
push eax
fild dword [esp]
add esp, 4
fmul dword [ebp - 0x48]
movzx eax, byte [ebp - 0x40]
push eax
fild dword [esp]
add esp, 4
fxch st(1)
faddp st(1)
sub esp, 4
fistp dword [esp]
mov al, byte [esp]
mov byte [ebp - 0x40], al
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x10035ceb
movzx eax, byte [ebp - 0x3e]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x1006b560]
movzx eax, byte [ebp - 0x3f]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x1006b568]
fxch st(1)
faddp st(1)
movzx eax, byte [ebp - 0x40]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x1006b570]
fxch st(1)
faddp st(1)
fistp dword [ebp - 0x44]
movzx eax, byte [ebp - 0x3d]
push eax
mov al, byte [ebp - 0x44]
push eax
mov al, byte [ebp - 0x44]
push eax
mov al, byte [ebp - 0x44]
push eax
call fcn.10035340
mov dword [ebp - 0x40], eax
jmp 0x10035d07
movzx eax, byte [ebp - 0x40]
push eax
movzx eax, byte [ebp - 0x3f]
push eax
movzx eax, byte [ebp - 0x3e]
push eax
movzx eax, byte [ebp - 0x3d]
push eax
call fcn.10035300
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 8]
call sub.gdiplus.dll_GdipBitmapSetPixel
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x38], eax
jle 0x10035bd7
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x3c], eax
jle 0x10035bc4
cmp dword [ebp + 0x18], 1
jne 0x10035d4a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
jmp 0x10035d59
push dword [ebp + 0x1c]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp dword [ebp - 8], 0
je 0x10035d67
push dword [ebp - 8]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 8]
push dword [ebp - 0x2c]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x28]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 0x4c]
call sub.gdiplus.dll_GdiplusShutdown
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0x18