Function at 0x401370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x410084]
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 0x40183d
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 0x40183d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [esp + 0x80]
call fcn.00402d30
cmp dword [esp + 0x94], 0x10
mov ebx, dword [esp + 0x80]
jae 0x401411
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 0x401648
jmp 0x401430
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 0x4014e4
jmp 0x401467
mov edx, dword [esp + 0x64]
movzx edi, ax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x401800
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x401800
cmp edx, esi
jae 0x4014f6
push ecx
push esi
lea ecx, [esp + 0x58]
push ecx
call fcn.00403350
mov ecx, dword [esp + 0x60]
test esi, esi
je 0x4014d2
mov eax, dword [esp + 0x50]
mov edx, 8
cmp dword [esp + 0x64], edx
jae 0x4014b2
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 0x4014c8
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 0x401463
mov esi, dword [esp + 0x44]
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, di
je 0x401599
jmp 0x401516
test esi, esi
jne 0x40149f
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], esi
cmp edx, 8
jae 0x40150b
lea eax, [esp + 0x50]
xor edx, edx
mov word [eax], dx
jmp 0x4014ce
mov esi, dword [esp + 0x44]
or edx, 0xffffffff
sub edx, esi
movzx edi, ax
cmp edx, 1
jbe 0x401800
inc esi
cmp esi, 0x7ffffffe
ja 0x401800
mov eax, dword [esp + 0x48]
cmp eax, esi
jae 0x4017dd
mov eax, dword [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.00403350
test esi, esi
je 0x401587
mov eax, dword [esp + 0x34]
mov ecx, 8
cmp dword [esp + 0x48], ecx
jae 0x401567
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 0x401581
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 0x401512
xor edi, edi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x58]
add ebx, 2
call fcn.004025c0
add esp, 8
mov ecx, eax
call fcn.00402070
mov esi, 8
cmp dword [esp + 0xcc], esi
jb 0x4015da
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00405225
add esp, 4
xor edx, edx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], dx
cmp dword [esp + 0xb0], esi
jb 0x40160f
mov eax, dword [esp + 0x9c]
push eax
call fcn.00405225
add esp, 4
cmp dword [esp + 0x48], esi
jb 0x401622
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00405225
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x401635
mov edx, dword [esp + 0x50]
push edx
call fcn.00405225
add esp, 4
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x401430
mov eax, dword [ebx]
add ebx, 4
mov esi, dword [ebx + eax]
mov dword [0x423c60], ebx
add ebx, eax
add ebx, 4
cmp esi, edi
jbe 0x40166e
push 1
push esi
push ebx
mov dword [0x423c64], ebx
call fcn.00403908
add ebx, esi
mov eax, ebx
mov dword [0x423c68], ebx
lea edx, [eax + 1]
jmp 0x401680
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401680
push 0x2c
sub eax, edx
lea ecx, [esp + 0x58]
lea eax, [eax + ebx + 1]
push edi
push ecx
mov dword [0x423c6c], eax
call fcn.00408f50
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], 0x401890
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]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x70], 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 [0x423c5c], 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 0x40180a
mov eax, dword [ebp + 0x14]
push eax
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 edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x4017a6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
jne 0x401787
cmp dword [esp + 0x94], 0x10
mov esi, dword [esp + 0x20]
jb 0x4017c4
mov eax, dword [esp + 0x80]
push eax
call fcn.00405225
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004050dc
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jne 0x401554
cmp eax, 8
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], esi
jae 0x4017f6
lea eax, [esp + 0x34]
xor edx, edx
mov word [eax], dx
jmp 0x401587
push str.string_too_long
call fcn.00405021
cmp dword [esp + 0x94], 0x10
jb 0x401824
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00405225
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004050dc
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x40e128
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 0x40186b
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00405225
add esp, 4
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004050dc
mov esp, ebp
pop ebp
ret 0x10