Function at 0x403110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412473
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x418250]
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 - 0xac], edi
mov dword [ebp - 0x98], ebx
call esi
mov ecx, dword [edi + 4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], ecx
cmp eax, 0x14
ja 0x4034e7
je 0x4034c6
dec eax
cmp eax, 0xf
ja case.0x40318d.3
movzx edx, byte [eax + 0x403600]
jmp dword [edx*4 + 0x4035ec]
mov eax, dword [edi + 0x70]
dec eax
xor ecx, ecx
cmp eax, 3
ja case.default.0x40319f
jmp dword [eax*4 + 0x403610]
mov ecx, 0x68
jmp case.default.0x40319f
mov ecx, 0x69
jmp case.default.0x40319f
mov ecx, 0x6a
jmp case.default.0x40319f
mov ecx, 0x6b
movzx eax, cx
push 0x4133e4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403435
mov ecx, dword [0x4193e0]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push 0
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x403435
push esi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40342e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403427
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x403427
mov edx, dword [ebp - 0x94]
push edx
push eax
push ecx
call fcn.00406570
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xa0]
push eax
push 0
push esi
mov dword [ebp - 0xa0], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40328c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4035ce
mov ecx, dword [ebp - 0xa0]
push 0x10
mov dword [ebp - 0x8c], ecx
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x4032c6
mov edx, dword [ebp - 0x8c]
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 0x4032c8
xor ebx, ebx
push esi
mov dword [edi + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xa0]
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 - 0x94], eax
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x90]
push 0x89
push 0x10d
mov esi, eax
push ecx
mov dword [ebp - 0x8c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0xa8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call fcn.004030d0
add esp, 4
push 0
mov esi, eax
push 0
push ebx
mov ecx, esi
call fcn.00402fe0
test esi, esi
je 0x403360
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 - 0x8c]
push esi
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x4033a7
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 - 0x94]
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 - 0xac]
inc esi
cmp esi, 0x89
jle 0x403364
inc ebx
cmp ebx, 0x10d
jle 0x403362
mov esi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0xa4]
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 - 0x90]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xa8]
push ecx
call esi
mov edx, dword [ebp - 0x8c]
push edx
call esi
cmp dword [edi + 0x88], 0
jne 0x403413
movzx eax, word [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x4035ce
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ebx, dword [ebp - 0x98]
jmp case.0x40318d.3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4035ce
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.0x40318d.3
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x40347d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x88], 0
mov ecx, dword [ebp - 0x90]
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.0x40318d.3
lea ecx, [ebp - 0x4c]
call fcn.00405e00
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.004058e0
lea ecx, [ebp - 0x4c]
call fcn.00405b40
inc eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x4c]
jmp 0x4035ac
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 0x4035ce
sub eax, 0x111
je 0x403555
sub eax, 0xef
je 0x40352a
dec eax
jne case.0x40318d.3
movsx ecx, bx
mov dword [ebp - 0x9c], ecx
mov edx, ebx
shr edx, 0x10
movsx eax, dx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x9c]
push ecx
push edx
mov ecx, edi
mov dword [ebp - 0x98], eax
call fcn.00402de0
jmp case.0x40318d.3
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov dword [ebp - 0x9c], eax
movsx edx, cx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x98], edx
call fcn.00402e90
jmp case.0x40318d.3
mov edx, dword [ebp + 0xc]
shr edx, 0x10
test edx, edx
jne case.0x40318d.3
cmp dword [edi + 0x8c], ebx
jne case.0x40318d.3
lea ecx, [ebp - 0x88]
call fcn.00405e00
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.004058e0
mov eax, dword [edi + 0x8c]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4035a6
mov dword [ebp - 0x6c], 3
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xa4]
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.00407142
mov esp, ebp
pop ebp
ret 0xc