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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x404d83
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [esp + 0x254]
and eax, 0xffff
push 0x406028
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40180f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40180f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x40180f
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x248]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [esp + 0x30]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40180f
cmp esi, ebx
je 0x40180f
lea eax, [esp + 0x24]
push ebx
push eax
push ebp
push edi
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [esp + 0x13]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x401741
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push esi
push eax
push ecx
call fcn.004022f0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov esi, dword [esp + 0x258]
mov dword [esp + 0x240], ebx
cmp dword [esi + 0x2c], ebx
je 0x4017be
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
cmp edi, ecx
je 0x4017be
lea eax, [edi + 0x10]
cmp eax, ecx
jne 0x40177f
mov dword [esi + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00404560
add esp, 8
mov ecx, esi
call fcn.00403af0
jmp 0x4017dc
mov dword [esp + 0x28], edi
mov dword [esi + 0x1c], eax
mov dword [esp + 0x2c], edi
cmp edi, ebx
mov byte [esp + 0x240], 1
je 0x4017dc
mov cl, byte [esp + 0x14]
push ebx
mov byte [edi], cl
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push ebx
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
jmp 0x4017dc
mov ecx, esi
call fcn.00403af0
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [eax + 0x10]
mov dword [esi + 0x1c], edx
call fcn.00404560
add esp, 8
mov ecx, dword [esi + 0x2c]
inc ecx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40180b
mov al, byte [ecx - 1]
cmp al, bl
je 0x4017ff
cmp al, 0xff
je 0x4017ff
dec al
mov byte [ecx - 1], al
mov eax, ebp
jmp 0x401811
add ecx, 0xfffffffe
push ecx
call fcn.004049b0
add esp, 4
mov eax, ebp
jmp 0x401811
mov eax, ebx
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret