Function at 0x401690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x280
mov eax, dword [0x40b010]
xor eax, esp
mov dword [esp + 0x27c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x844
mov dword [0x40ddd0], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x40b4fc], eax
test eax, eax
je 0x401971
push 0x844
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test eax, eax
je 0x401971
call fcn.00405470
push 0x104
push dword [0x40b4fc]
push 0
call dword [0x40dda4]
mov edx, dword [0x40b4fc]
push 1
lea ecx, [edx + 0x12c]
call fcn.00404120
mov edx, dword [0x40b4fc]
lea ecx, [edx + 0x258]
call fcn.00404210
add esp, 4
mov dword [esp + 0x30], 0x11c
lea eax, [esp + 0x44]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x146], ax
mov dword [esp + 0x148], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 6
xor ecx, ecx
mov dword [esp + 0x44], 2
push eax
mov word [esp + 0x154], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x4017e1
mov eax, dword [0x40b4fc]
push 0x30
add eax, 0x12c
push eax
push str.This_program_requires_Windows_8_or_higher
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00407747
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 8]
push eax
push 0x8002
push dword [0x40ddd0]
call dword [0x40ddb4]
mov eax, dword [0x40ddd0]
push str.rdpicon
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], str.EncoderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
call dword [0x40ddc8]
test ax, ax
jne 0x40184f
push dword [0x40b4fc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00407747
mov esp, ebp
pop ebp
ret 0x10
call fcn.004031d0
mov eax, dword [0x40b4fc]
push str._sRdpZapper__.reg
add eax, 0x258
push eax
push 0x106
push str.D:MyProjectsProPilotTestLoaderMain2.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x164]
push 0x12c
push eax
call fcn.004046c0
add esp, 0x1c
lea ecx, [esp + 0x150]
call fcn.004010b0
mov eax, dword [0x40b500]
test eax, eax
je 0x40195c
cmp dword [eax + 4], 0
je 0x40195c
push 0x409cd8
push 0x66
push dword [0x40ddd0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401971
push esi
push dword [0x40ddd0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x40b504], eax
test eax, eax
je 0x401971
push esi
push dword [0x40ddd0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401971
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x40b4f0], eax
xor esi, esi
push 0
push 0
push esi
push 0x4015c0
push 0
push 0
call dword [0x40ddc4]
inc esi
cmp esi, 0x100
jl 0x401905
cmp dword [0x40b4ec], 0x100
jge 0x401971
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [0x40b4ec], 0x100
jl 0x401934
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00407747
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x4014a0
push 0
push str.PinDialog
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x284]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00407747
mov esp, ebp
pop ebp
ret 0x10