Function at 0x418200
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.00417c70
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x418299
jmp 0x418623
push 0x42c830
push 1
push dword [ebp + 0xc]
call fcn.00428cd0
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
call fcn.00427c80
test eax, eax
sete al
shr eax, 1
sbb eax, eax
mov dword [ebp - 0x54], eax
push dword [ebp - 0x50]
call fcn.00428a80
cmp dword [ebp - 0x54], 0
je 0x41831f
push 0xffffffffffffffff
push 2
push dword [ebp + 0xc]
call fcn.00428d70
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
call fcn.00428450
sub esp, 4
fistp dword [esp]
pop word [ebp - 0x18]
add esp, 2
push dword [ebp - 0x58]
call fcn.00428a80
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 0x41832f
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 0x418615
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x418615
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 0x418615
push dword [ebp - 0x20]
push 2
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x418615
push dword [ebp - 0x28]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41860d
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 0x418605
cmp dword [ebp - 0x24], 0
je 0x418605
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 0x418419
fild dword [ebp + 0x10]
fdiv qword [0x42e670]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x48]
fcomp dword [0x42e684]
push eax
fnstsw ax
test ah, 0x40
pop eax
sete 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 0x4185c9
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x58], eax
jmp 0x4185bd
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x5c], eax
jmp 0x4185ae
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 0x41851f
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 0x41857e
movzx eax, byte [ebp - 0x3e]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x42e698]
movzx eax, byte [ebp - 0x3f]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x42e6a0]
fxch st(1)
faddp st(1)
movzx eax, byte [ebp - 0x40]
push eax
fild dword [esp]
add esp, 4
fmul qword [0x42e6a8]
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.00417c30
mov dword [ebp - 0x40], eax
jmp 0x41859a
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.00417bf0
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 0x41846a
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x3c], eax
jle 0x418457
cmp dword [ebp + 0x18], 1
jne 0x4185dd
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
jmp 0x4185ec
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 0x4185fa
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