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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c98d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 0xe
push str.128
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404eef
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404eef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x404eef
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x404eef
movzx esi, word [ebx + 4]
mov eax, esi
mov dword [ebp - 0x10], eax
lea edi, [eax - 1]
shl edi, 4
add edi, 0x16
push edi
call fcn.00406b98
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
mov word [eax + 4], si
mov esi, edi
mov dword [eax], 0x10000
jbe 0x404df6
lea edx, [ebx + 7]
mov ebx, dword [ebp - 0x10]
lea ecx, [eax + 7]
movzx eax, byte [edx - 1]
lea ecx, [ecx + 0x10]
mov byte [ecx - 0x11], al
lea edx, [edx + 0xe]
movzx eax, byte [edx - 0xe]
mov byte [ecx - 0x10], al
movzx eax, byte [edx - 0xd]
mov byte [ecx - 0xf], al
mov byte [ecx - 0xe], 0
movzx eax, word [edx - 0xb]
mov word [ecx - 0xd], ax
movzx eax, word [edx - 9]
mov word [ecx - 0xb], ax
mov eax, dword [edx - 7]
mov dword [ecx - 9], eax
mov dword [ecx - 5], esi
add esi, dword [edx - 7]
sub ebx, 1
jne 0x404db3
mov ebx, dword [ebp - 0x1c]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push ecx
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp dword [ebp - 0x10], edi
jbe 0x404ee6
add ebx, 0x12
mov dword [ebp - 0x14], ebx
call fcn.00401250
mov ecx, eax
test ecx, ecx
je 0x404f03
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x18]
push 0x423224
push eax
call fcn.004063a0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x404eb7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404eb7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x404eb4
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404ed6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
add ebx, 0xe
mov dword [ebp - 0x14], ebx
cmp edi, dword [ebp - 0x10]
jl 0x404e33
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401040
int3