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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403a05
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x28]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
call fcn.004023a0
cmp dword [ebp + 0x4c], 0xf
lea edx, [ebp + 0x38]
mov ecx, dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x30], ecx
push ecx
push edx
cmp ecx, eax
ja 0x401e54
cmp dword [ebp - 0x14], 0xf
lea eax, [ecx + esi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x401e64
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402820
push str.extractBinResource:
call fcn.00401850
add esp, 4
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0xf
cmova eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp - 0x34]
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push 0
cmova ecx, dword [ebp - 0x28]
mov esi, eax
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x402056
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CreateFile
call fcn.00402510
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push str.failure:_Unable_to_open_file___s__for_write._n
call fcn.00401850
add esp, 8
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f20
sub ecx, edx
push ecx
push 0
mov ecx, edi
call fcn.00402730
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x401f67
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401f5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x401fad
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401fa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x401ff3
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401fe9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0xf
jbe 0x402039
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40202f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402a3a
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ecx
push esi
push dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402091
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40431c
call fcn.00402510
push str.failure:_Unable_to_write_to_file._n
call fcn.00401850
add esp, 4
jmp 0x4020c2
cmp dword [ebp - 0x2c], esi
je 0x4020a8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CreateFile_size_miss_match__
call fcn.00402510
jmp 0x4020c2
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push esi
cmova eax, dword [ebp - 0x28]
push eax
push str.resource:__s___d_bytes____success_n
call fcn.00401850
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp ecx, 0xf
jbe 0x402136
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40212c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x402178
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40216e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021bc
push ecx
push edx
call fcn.00402c75
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0xf
jbe 0x402039
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40202f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40202f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3