Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x40f084]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0xc8
push 0xa
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x4014ce
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4014ce
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [esp + 0x80]
call fcn.004028f0
cmp dword [esp + 0x94], 0x10
mov ebx, dword [esp + 0x80]
jae 0x4010a1
mov ebx, esi
movzx eax, byte [ebx]
xor edi, edi
inc ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
cmp eax, edi
jbe 0x4012d9
jmp 0x4010c0
xor eax, eax
mov word [esp + 0x50], ax
mov word [esp + 0x34], ax
movzx eax, word [ebx]
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], esi
cmp ax, di
je 0x401174
jmp 0x4010f7
mov edx, dword [esp + 0x64]
movzx edi, ax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x401491
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x401491
cmp edx, esi
jae 0x401186
push ecx
push esi
lea ecx, [esp + 0x58]
push ecx
call fcn.004023c0
mov ecx, dword [esp + 0x60]
test esi, esi
je 0x401162
mov eax, dword [esp + 0x50]
mov edx, 8
cmp dword [esp + 0x64], edx
jae 0x401142
lea eax, [esp + 0x50]
mov word [eax + ecx*2], di
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], esi
cmp dword [esp + 0x64], edx
jae 0x401158
lea eax, [esp + 0x50]
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [esp + 0x60]
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4010f3
mov esi, dword [esp + 0x44]
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, di
je 0x401229
jmp 0x4011a6
test esi, esi
jne 0x40112f
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], esi
cmp edx, 8
jae 0x40119b
lea eax, [esp + 0x50]
xor edx, edx
mov word [eax], dx
jmp 0x40115e
mov esi, dword [esp + 0x44]
or edx, 0xffffffff
sub edx, esi
movzx edi, ax
cmp edx, 1
jbe 0x401491
inc esi
cmp esi, 0x7ffffffe
ja 0x401491
mov eax, dword [esp + 0x48]
cmp eax, esi
jae 0x40146e
mov eax, dword [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.004023c0
test esi, esi
je 0x401217
mov eax, dword [esp + 0x34]
mov ecx, 8
cmp dword [esp + 0x48], ecx
jae 0x4011f7
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
mov word [eax + edx*2], di
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], esi
cmp dword [esp + 0x48], ecx
jae 0x401211
lea eax, [esp + 0x34]
xor ecx, ecx
mov word [eax + esi*2], cx
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4011a2
xor edi, edi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xa4]
push ecx
add ebx, 2
call fcn.00401fa0
add esp, 0xc
mov ecx, eax
call fcn.00401c50
mov esi, 8
cmp dword [esp + 0xcc], esi
jb 0x40126b
mov edx, dword [esp + 0xb8]
push edx
call fcn.00404685
add esp, 4
xor eax, eax
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], ax
cmp dword [esp + 0xb0], esi
jb 0x4012a0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00404685
add esp, 4
cmp dword [esp + 0x48], esi
jb 0x4012b3
mov edx, dword [esp + 0x34]
push edx
call fcn.00404685
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x4012c6
mov eax, dword [esp + 0x50]
push eax
call fcn.00404685
add esp, 4
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x4010c0
mov eax, dword [ebx]
add ebx, 4
mov esi, dword [ebx + eax]
mov dword [0x422c40], ebx
add ebx, eax
add ebx, 4
cmp esi, edi
jbe 0x4012ff
push 1
push esi
push ebx
mov dword [0x422c44], ebx
call fcn.00402d68
add ebx, esi
mov eax, ebx
mov dword [0x422c48], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401310
sub eax, edx
push 0x2c
lea edx, [esp + 0x58]
lea ecx, [eax + ebx + 1]
push edi
push edx
mov dword [0x422c4c], ecx
call fcn.00407f30
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x7f00
push edi
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x5c], 3
mov dword [esp + 0x60], 0x401520
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x74], 5
mov dword [esp + 0x7c], str.Launcher
mov dword [esp + 0x80], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push edi
push esi
push edi
push edi
push 0xfa
push 0x13c
mov dword [0x422c3c], esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x7d
push eax
push edi
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0x9e
push eax
push 0xc80000
push str.Launcher
push str.Launcher
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
cmp esi, edi
je 0x40149b
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x401437
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x401418
cmp dword [esp + 0x94], 0x10
mov esi, dword [esp + 0x20]
jb 0x401455
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00404685
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0040453c
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jne 0x4011e4
cmp eax, 8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], esi
jae 0x401487
lea eax, [esp + 0x34]
xor edx, edx
mov word [eax], dx
jmp 0x401217
push str.string_too_long
call fcn.00404481
cmp dword [esp + 0x94], 0x10
jb 0x4014b5
mov edx, dword [esp + 0x80]
push edx
call fcn.00404685
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0040453c
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Error
push str.Unable_to_find_resource_data__do_not_run_Stub.exe_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x94], 0x10
jb 0x4014fc
mov edx, dword [esp + 0x80]
push edx
call fcn.00404685
add esp, 4
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040453c
mov esp, ebp
pop ebp
ret 0x10