Function at 0x4a4020
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x304c]
mov eax, 0x304c
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x508cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x3048], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0x3054]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ebx
call fcn.00467980
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2048]
push 0x800
push eax
lea eax, [ebp + 0x1048]
mov byte [esi + 0x3028], 0
push eax
mov ecx, 0x55f640
call fcn.004a8fa0
cmp word [ebx + 0x83ca], 0
lea ecx, [ebx + 0x83ca]
je 0x4a40d0
lea edx, [ebp + 0x1048]
sub edx, ecx
jmp 0x4a40c0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4a40c0
cmp word [ebx + 0x93ca], 0
lea ecx, [ebx + 0x93ca]
je 0x4a4100
lea edx, [ebp + 0x2048]
sub edx, ecx
jmp 0x4a40f0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4a40f0
push 6
push str.WinCon
lea edi, [ebx + 0x1010]
push edi
call fcn.00478eb0
push eax
call fcn.00491b00
test eax, eax
jne 0x4a4126
mov word [ebp + 0x2048], ax
jmp 0x4a412d
mov ax, word [ebp + 0x2048]
xor ecx, ecx
lea ebx, [esi + 0x1024]
mov word [ebx], cx
cmp word [edi], cx
je 0x4a443c
cmp word [ebp + 0x1048], cx
jne 0x4a415e
test ax, ax
jne 0x4a415e
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xa3ca], cl
je 0x4a443c
push edi
call fcn.00469360
test al, al
je 0x4a443c
lea edx, [esi + 0x2024]
mov ecx, edi
sub edx, edi
jmp 0x4a4180
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4a4180
push 0x800
push ebx
push str.Rar_SF
mov dword [esi + 0x3024], edi
call fcn.004c3d00
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a442c
push edi
mov ecx, esi
call fcn.004a5340
test al, al
je 0x4a41e1
push 0x5f5
call fcn.00488530
push eax
call fcn.004cf640
add esp, 4
mov ecx, 0x56df60
push 1
call fcn.004631b0
jmp 0x4a442c
push dword [ebp - 0x14]
mov ecx, esi
push edi
call fcn.004a4a80
test al, al
je 0x4a443c
push dword [ebp - 0x14]
call fcn.004f2a17
add esp, 4
lea ecx, [ebp - 0x38]
push 0x10000
call fcn.00403eb0
mov byte [ebp - 4], 1
mov ecx, esi
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
add eax, 0x1010
push edi
push eax
call fcn.004a57e0
push 0
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a43a2
push 3
push 0
xor al, al
mov byte [ebp - 0xe], 0
push ebx
mov byte [ebp - 0xd], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4a42f7
mov cx, word [ebp + 0x1048]
test cx, cx
je 0x4a42b1
push dword [ebp - 0x18]
push 0x4a4ca0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push dword [ebp - 0x18]
push 0x4a4ca0
push 0xe
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0x64
lea eax, [ebp + 0x1048]
mov ecx, esi
push eax
push dword [ebp - 0x18]
call fcn.004a4660
mov cx, word [ebp + 0x1048]
mov dl, al
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xe], dl
jmp 0x4a42b4
mov dl, byte [ebp - 0xe]
cmp word [ebp + 0x2048], 0
je 0x4a42ee
test cx, cx
je 0x4a42c7
test dl, dl
je 0x4a42ee
push dword [ebp - 0x18]
push 0x4a4ca0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0x65
lea eax, [ebp + 0x2048]
mov ecx, esi
push eax
push dword [ebp - 0x18]
call fcn.004a4540
mov byte [ebp - 0xd], al
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4a43a2
cmp word [ebp + 0x2048], 0
mov al, byte [ebp - 0xd]
je 0x4a431f
test al, al
je 0x4a43a2
cmp byte [ebp - 0xe], 0
jne 0x4a433b
test al, al
mov eax, dword [ebp - 0x1c]
jne 0x4a433e
cmp byte [eax + 0xa3ca], 0
je 0x4a43d0
jmp 0x4a433e
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xa3ca], 0
je 0x4a434f
push ebx
mov ecx, esi
call fcn.004a4b30
lea ecx, [ebp]
call fcn.0040d460
push 0
lea eax, [ebp]
push eax
push ebx
call fcn.0046ac60
test al, al
je 0x4a43bc
mov ecx, dword [ebp - 0x14]
xor eax, eax
add ecx, dword [ebp + 0x1000]
adc eax, dword [ebp + 0x1004]
mov dword [ebp - 0x20], eax
jne 0x4a4385
cmp ecx, 0x200000
jbe 0x4a43bc
push 0x200000
push 0x5a0
call fcn.00488530
push eax
push 0x54f29a
call fcn.004d2c60
add esp, 0xc
mov byte [ebp - 4], 0
test edi, edi
je 0x4a443c
push edi
call fcn.004f252e
add esp, 4
jmp 0x4a443c
mov eax, dword [ebp - 0x1c]
push 0x800
push ebx
add eax, 0x1010
push eax
call fcn.0048e710
cmp dword [ebp - 0x14], 0
je 0x4a441b
push dword [ebp - 0x34]
mov ecx, esi
push edi
push ebx
call fcn.004a57e0
test eax, eax
jne 0x4a441b
push 0x510b84
push ebx
call fcn.004c4600
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4a441b
push 2
push 0
push eax
call fcn.004f679d
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push 1
push edi
call fcn.004f2dfc
push dword [ebp - 0x20]
call fcn.004f2a17
add esp, 0x20
mov byte [ebp - 4], 0
test edi, edi
je 0x4a442c
push edi
call fcn.004f252e
add esp, 4
cmp word [ebx], 0
je 0x4a443c
mov edx, dword [esi]
mov ecx, esi
push 4
push ebx
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3048]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x304c]
pop ebp
ret 4