Function at 0x402331
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410550
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4151d0]
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
mov ebx, dword [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetDC]
mov edi, ecx
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x88], ebx
call esi
mov ecx, dword [edi + 4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
cmp eax, 0x14
ja 0x402673
je 0x402652
dec eax
cmp eax, 0xf
ja case.0x40268a.274
movzx edx, byte [eax + 0x4027a8]
jmp dword [edx*4 + 0x402794]
mov eax, dword [edi + 0x70]
dec eax
xor ecx, ecx
cmp eax, 3
ja case.default.0x40233c
jmp dword [eax*4 + 0x4027b8]
mov ecx, 0x68
jmp case.default.0x40233c
mov ecx, 0x69
jmp case.default.0x40233c
mov ecx, 0x6a
jmp case.default.0x40233c
mov ecx, 0x6b
movzx eax, cx
push 0x411318
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4025b8
mov ecx, dword [0x416360]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push 0
mov dword [ebp - 0x84], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4025b8
push esi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4025b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4025aa
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x4025aa
mov edx, dword [ebp - 0x84]
push edx
push eax
push ecx
call fcn.004046a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x90]
push eax
push 0
push esi
mov dword [ebp - 0x90], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x402423
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x402775
mov ecx, dword [ebp - 0x90]
push 0x10
mov dword [ebp - 0x7c], ecx
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x402457
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 4]
push eax
push edx
mov dword [ebx], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebx + 8], eax
jmp 0x402459
xor ebx, ebx
push esi
mov dword [edi + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x89
push 0x10d
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x80]
push 0x89
push 0x10d
mov esi, eax
push ecx
mov dword [ebp - 0x7c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x98], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call fcn.00401e20
add esp, 4
push 0
mov esi, eax
push 0
push ebx
mov ecx, esi
call fcn.00401de0
test esi, esi
je 0x4024e8
mov edx, dword [esi]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
xor ebx, ebx
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp - 0x7c]
push esi
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x402530
lea ecx, [esi + 1]
push ecx
lea edx, [ebx + 1]
push edx
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, eax
mov eax, dword [ebp - 0x84]
push 3
push eax
push edi
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0x9c]
inc esi
cmp esi, 0x89
jle 0x4024f0
inc ebx
cmp ebx, 0x10d
jle 0x4024ea
mov esi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x94]
push 1
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x98]
push ecx
call esi
mov edx, dword [ebp - 0x7c]
push edx
call esi
cmp dword [edi + 0x88], 0
jne 0x402596
movzx eax, word [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x402775
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ebx, dword [ebp - 0x88]
jmp case.0x40268a.274
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x402775
lea esi, [edi + 8]
push esi
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
mov ecx, dword [edi + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
jmp case.0x40268a.274
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x402600
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x88], 0
mov ecx, dword [ebp - 0x80]
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x40268a.274
lea ecx, [ebp - 0x44]
call fcn.00403fc0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00403960
lea ecx, [ebp - 0x44]
call fcn.00403b60
inc eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00403c80
jmp case.0x40268a.274
push ecx
call esi
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push esi
mov ecx, edi
call edx
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
jmp 0x402775
add eax, 0xfffffeef
cmp eax, 0xf0
ja case.0x40268a.274
movzx edx, byte [eax + 0x4027dc]
jmp dword [edx*4 + 0x4027c8]
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov dword [ebp - 0x8c], eax
movsx edx, cx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x88], edx
call fcn.00402030
jmp case.0x40268a.274
movsx edx, bx
mov eax, ebx
shr eax, 0x10
movsx ecx, ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], edx
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x88], ecx
push eax
mov ecx, edi
call fcn.004020e0
jmp case.0x40268a.274
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
test ecx, ecx
jne case.0x40268a.274
cmp dword [edi + 0x8c], ebx
jne case.0x40268a.274
lea ecx, [ebp - 0x78]
call fcn.00403fc0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0
call fcn.00403960
mov edx, dword [edi + 0x8c]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x402735
mov dword [ebp - 0x5c], 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00403c80
jmp case.0x40268a.274
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x94]
push ebx
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
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.00405272
mov esp, ebp
pop ebp
ret 0xc