Function at 0x41aa38
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x467173
call fcn.00463b20
mov dword [ebp - 0x2c], edx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyResourceToFileOrBuffer
lea ecx, [ebp - 0x3c]
call fcn.0041bb53
xor eax, eax
mov dword [ebp - 4], eax
or esi, 0xffffffff
mov dword [ebp - 0x14], esi
mov edx, eax
mov dword [ebp - 0x20], edx
mov edi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x41ac63
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41aa96
test ebx, ebx
jne 0x41ac63
mov cl, byte [ebp + 0xc]
test cl, cl
je 0x41aaa5
test ebx, ebx
jne 0x41ac63
cmp dword [ebp + 0x10], edx
je 0x41ac63
xor edi, edi
test ebx, ebx
jne 0x41aace
test eax, eax
je 0x41aace
mov edx, eax
mov dword [ebp - 0x20], edx
cmp word [eax], di
jne 0x41aace
mov dword [ebp - 0x10], 0x57
jmp 0x41ac81
cmp dword [0x48bc70], 0
jle 0x41aae3
mov dword [ebp - 0x10], 0x2e3
jmp 0x41ac81
test edx, edx
je 0x41ab62
movzx eax, cl
push 9
pop edi
lea eax, [eax*2 + 1]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push eax
push 0
push 5
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x41ab4d
cmp eax, 0x20
je 0x41ab29
cmp eax, 5
jne 0x41ab3f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
jns 0x41aaf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x41ac81
cmp byte [ebp + 0xc], 0
je 0x41ab72
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41ab72
test ebx, ebx
je 0x41ab6f
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov dword [ebx], edi
jmp 0x41ab72
mov dword [ebp - 0x24], edi
push dword [0x48bd10]
call fcn.00445d23
mov edi, eax
pop ecx
test edi, edi
jne 0x41ab90
mov dword [ebp - 0x10], 8
jmp 0x41ac75
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
jmp 0x41ac33
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41ac55
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41ac1f
cmp dword [ebp - 0x20], 0
je 0x41abe4
push 0
lea eax, [ebp - 0x28]
push eax
push esi
mov esi, dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41abd6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
je 0x41ac22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x41ac6a
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
add eax, esi
cmp eax, edx
mov eax, dword [ebp - 0x18]
jbe 0x41abfe
mov esi, edx
mov dword [ebp - 0x10], 0x7a
sub esi, eax
push esi
add eax, ecx
push edi
push eax
call fcn.004422a0
add dword [ebp - 0x18], esi
add esp, 0xc
test ebx, ebx
je 0x41ac14
add dword [ebx], esi
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
jne 0x41ac6a
jmp 0x41ac22
mov esi, dword [ebp - 0x14]
cmp dword [0x48bc70], 0
jg 0x41ac5a
and dword [ebp - 0x1c], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x48bd10]
push edi
push dword [ebp - 0x30]
call dword [ebp + 0x10]
test eax, eax
jne 0x41aba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
jmp 0x41ac6a
mov dword [ebp - 0x10], 0x2e3
jmp 0x41ac6a
mov dword [ebp - 0x10], 0x57
test edi, edi
je 0x41ac75
push edi
call fcn.00445d2e
pop ecx
cmp esi, 0xffffffff
je 0x41ac81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041bbc1
mov eax, esi
call fcn.00463ae9
ret