Function at 0x405000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412503
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
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 esi, dword [ebp + 0x10]
mov edi, ecx
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0xbc], esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
cmp eax, 0x10
ja 0x405351
je 0x4052fa
dec eax
je 0x4050ce
dec eax
je 0x40509a
sub eax, 0xd
jne 0x4053b1
lea esi, [edi + 8]
push esi
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
push eax
push ebx
mov ecx, edi
call fcn.00404db0
mov ecx, dword [edi + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov esi, dword [ebp - 0xbc]
jmp 0x4053b1
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4050b0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x78], 0
mov ecx, dword [ebp - 0xb4]
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 0x4053b1
push 0x4133e4
push 0x72
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4052f3
mov eax, dword [0x419488]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push 0
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4052f3
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4052ec
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4052e5
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x4052e5
mov edx, dword [ebp - 0xb8]
push edx
push eax
push ecx
call fcn.00406570
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xb4]
push eax
push 0
push ebx
mov dword [ebp - 0xb4], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x405197
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4053c1
mov ecx, dword [ebp - 0xb4]
push 0x10
mov dword [ebp - 0xb8], ecx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4051d1
mov edx, dword [ebp - 0xb8]
lea eax, [esi + 4]
push eax
push edx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4051d3
xor esi, esi
push ebx
mov dword [edi + 0x78], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x74]
push eax
call fcn.00405f50
add esp, 4
xor ebx, ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], cx
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401490
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401490
push str.UnChecked.png
lea ecx, [ebp - 0x58]
call fcn.004027c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x405275
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x58]
jae 0x40525e
lea ecx, [ebp - 0x58]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x405277
xor esi, esi
push 0x4133a8
lea ecx, [ebp - 0x3c]
mov dword [edi + 0x80], esi
call fcn.004027c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x4052ba
cmp dword [ebp - 0x28], 8
mov ecx, dword [ebp - 0x3c]
jae 0x4052a3
lea ecx, [ebp - 0x3c]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x4052bc
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [edi + 0x7c], esi
call fcn.00401210
lea ecx, [ebp - 0x58]
call fcn.00401210
lea ecx, [ebp - 0x74]
call fcn.00401210
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xbc]
jmp 0x4053b1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4053c1
movzx ecx, word [ebp + 0xc]
push ecx
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0xb0]
call fcn.00405e00
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 3
call fcn.004058e0
cmp dword [edi + 0x84], 0
je 0x40533d
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
jmp 0x4053b1
sub eax, 0x200
je 0x405391
dec eax
je 0x40536f
sub eax, 0x200
jne 0x4053b1
push eax
push eax
push 0x10
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4053b1
movsx ecx, si
mov dword [ebp - 0x18], ecx
mov edx, esi
shr edx, 0x10
movsx eax, dx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push edx
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00404ca0
jmp 0x4053b1
movsx eax, si
mov ecx, esi
shr ecx, 0x10
mov dword [ebp - 0x18], eax
movsx edx, cx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x14], edx
call fcn.00404d20
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
push ebx
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