Function at 0x403e3b
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 edi, dword [ebp + 0x10]
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0xbc], edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [esi + 4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
cmp eax, 0x111
ja 0x40412f
je 0x40411d
dec eax
cmp eax, 0xf
ja case.0x403e34.3
movzx ecx, byte [eax + 0x4041d4]
jmp dword [ecx*4 + 0x4041c0]
push 0x4133e4
push 0x73
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404061
mov edx, dword [0x419418]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push 0
mov dword [ebp - 0xb4], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404061
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40405a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x404053
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x404053
mov edx, dword [ebp - 0xb4]
push edx
push eax
push ecx
call fcn.00406570
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xb8]
push eax
push 0
push ebx
mov dword [ebp - 0xb8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x403f05
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x40419f
mov ecx, dword [ebp - 0xb8]
push 0x10
mov dword [ebp - 0xb4], ecx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x403f3f
mov edx, dword [ebp - 0xb4]
lea eax, [edi + 4]
push eax
push edx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x403f41
xor edi, edi
push ebx
mov dword [esi + 0x78], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xb8]
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 edi, eax
cmp edi, ebx
je 0x403fe3
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x58]
jae 0x403fcc
lea ecx, [ebp - 0x58]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x403fe5
xor edi, edi
push 0x4133a8
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x80], edi
call fcn.004027c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x404028
cmp dword [ebp - 0x28], 8
mov ecx, dword [ebp - 0x3c]
jae 0x404011
lea ecx, [ebp - 0x3c]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x40402a
xor edi, edi
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x7c], edi
call fcn.00401210
lea ecx, [ebp - 0x58]
call fcn.00401210
lea ecx, [ebp - 0x74]
call fcn.00401210
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xbc]
jmp case.0x403e34.3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x40419f
lea edi, [esi + 8]
push edi
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
push eax
push ebx
mov ecx, esi
call fcn.00403b70
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov edi, dword [ebp - 0xbc]
jmp case.0x403e34.3
movzx edx, word [ebp + 0xc]
push edx
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 [esi + 0x84], 0
je 0x4040d5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x1a]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.00405cf0
jmp case.0x403e34.3
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x404102
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x78], 0
mov ecx, dword [ebp - 0xb4]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x403e34.3
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push edi
push ecx
push 0
mov ecx, esi
call edx
jmp case.0x403e34.3
sub eax, 0x200
je 0x40416f
dec eax
je 0x40414d
sub eax, 0x200
jne case.0x403e34.3
push eax
push eax
push 0x10
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x403e34.3
movsx eax, di
mov ecx, edi
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, esi
mov dword [ebp - 0x14], edx
call fcn.00402400
jmp case.0x403e34.3
movsx edx, di
mov eax, edi
shr eax, 0x10
movsx ecx, ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], ecx
push eax
mov ecx, esi
call fcn.00402480
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push ecx
push edx
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