Function at 0x402fa5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4105c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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 eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_GetDC]
mov edi, ecx
mov ecx, dword [edi + 4]
push ecx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x50], eax
call ebx
mov esi, dword [edi + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], esi
cmp eax, 0x14
ja 0x403270
je 0x403242
dec eax
cmp eax, 0xf
ja case.0x403287.274
movzx edx, byte [eax + 0x403348]
jmp dword [edx*4 + 0x403334]
push 0x411318
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4031a7
mov eax, dword [0x416398]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push 0
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4031a7
push esi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4031a0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403199
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x403199
mov edx, dword [ebp - 0x5c]
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 - 0x60]
push eax
push 0
push esi
mov dword [ebp - 0x60], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40305c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x403313
mov ecx, dword [ebp - 0x60]
push 0x10
mov dword [ebp - 0x48], ecx
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x40308d
mov edx, dword [ebp - 0x48]
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 0x40308f
xor ebx, ebx
push esi
mov dword [edi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x43
push 0x10d
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x4c]
push 0x43
push 0x10d
mov esi, eax
push ecx
mov dword [ebp - 0x48], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x54], 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 0x40310c
mov edx, dword [esi]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0x48]
push esi
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x40314a
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 - 0x5c]
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 - 0x68]
inc esi
cmp esi, 0x43
jle 0x403110
inc ebx
cmp ebx, 0x10d
jle 0x40310e
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
push 1
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x54]
push edx
call esi
mov eax, dword [ebp - 0x48]
push eax
call esi
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov esi, dword [ebp - 0x64]
jmp case.0x403287.274
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x403313
lea ebx, [edi + 8]
push ebx
push esi
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 ebx
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
jmp case.0x403287.274
movzx edx, word [ebp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x44]
call fcn.00403fc0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00403960
lea ecx, [ebp - 0x44]
call fcn.00403bf0
inc eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00403c80
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x403227
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x74], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x403287.274
push esi
call ebx
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edx + 0x20]
push ebx
mov ecx, edi
call eax
mov ecx, dword [edi + 4]
push ebx
push ecx
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x54], 0
je case.0x403287.274
xor eax, eax
jmp 0x403313
add eax, 0xfffffeef
cmp eax, 0xf0
ja case.0x403287.274
movzx edx, byte [eax + 0x40336c]
jmp dword [edx*4 + 0x403358]
mov eax, dword [ebp - 0x50]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x54], edx
call fcn.00402e00
jmp case.0x403287.274
mov eax, dword [ebp - 0x50]
movsx edx, ax
shr eax, 0x10
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp + 0xc]
cwde
push ecx
push edx
mov ecx, edi
mov dword [ebp - 0x54], eax
call fcn.00402e40
jmp case.0x403287.274
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
push ecx
push edx
push 0
mov ecx, edi
call eax
jmp case.0x403287.274
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
push esi
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