Function at 0x46bee0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c4136
mov eax, dword fs:[0]
push eax
mov eax, 0x24c8
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x24c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d98f0]
xor eax, esp
push eax
lea eax, [esp + 0x24dc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24ec]
mov ebx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], esi
call fcn.004340f0
mov dword [esp + 0x24e4], 0
lea eax, [esp + 0x1cd8]
push eax
lea ecx, [esp + 0x14dc]
push ecx
mov ecx, 0x522fe0
mov byte [ebx + 0x1c2c], 0
call fcn.004717c0
cmp word [esi + 0x435a], 0
lea eax, [esi + 0x435a]
je 0x46bf8f
lea edx, [esp + 0x14d8]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46bf80
cmp word [esi + 0x4b5a], 0
lea eax, [esi + 0x4b5a]
je 0x46bfbf
lea edx, [esp + 0x1cd8]
sub edx, eax
jmp 0x46bfb0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46bfb0
xor edx, edx
lea edi, [esi + 0x810]
mov word [ebx + 0xc28], dx
mov dword [esp + 0x1c], edi
cmp word [edi], dx
je 0x46c2f8
cmp word [esp + 0x14d8], dx
jne 0x46bffb
cmp word [esp + 0x1cd8], dx
jne 0x46bffb
cmp byte [esi + 0x535a], dl
je 0x46c2f8
push edi
call fcn.00435620
test al, al
je 0x46c2f8
lea edx, [ebx + 0x1428]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46c013
lea eax, [ebx + 0xc28]
push eax
push str.Rar_SF
mov dword [ebx + 0x1c28], edi
call fcn.0048b800
mov esi, eax
test esi, esi
je 0x46c2dc
push edi
mov ecx, ebx
call fcn.0046a560
test al, al
je 0x46c073
push 0x5f5
call fcn.00466860
push eax
call fcn.00499800
add esp, 4
push 1
mov ecx, 0x5072f4
call fcn.0042c9e0
jmp 0x46c2dc
push esi
push edi
mov ecx, ebx
call fcn.0046a610
test al, al
je 0x46c2f8
push esi
call fcn.004b2d6e
mov esi, 0x10000
push esi
call fcn.004b00f7
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x46c0ac
mov ecx, 0x5072f4
call fcn.0042cb70
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x24e4], 1
push esi
push ebp
push edi
mov ecx, ebx
call fcn.0046a6c0
push 0
lea edi, [ebx + 0xc28]
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
test esi, esi
je 0x46c24b
push 3
push 0
push edi
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46c188
cmp word [esp + 0x14d8], 0
mov ebp, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
je 0x46c13f
push esi
push 0x46a530
push 3
push edi
call ebp
push esi
push 0x46a530
push 0xe
push edi
call ebp
push 0x64
lea eax, [esp + 0x14dc]
push eax
push esi
mov ecx, ebx
call fcn.0046a1f0
mov byte [esp + 0x17], al
cmp word [esp + 0x1cd8], 0
je 0x46c17d
cmp word [esp + 0x14d8], 0
je 0x46c15c
cmp byte [esp + 0x17], 0
je 0x46c17d
push esi
push 0x46a530
push 2
push edi
call ebp
push 0x65
lea ecx, [esp + 0x1cdc]
push ecx
push esi
mov ecx, ebx
call fcn.0046a3f0
mov byte [esp + 0x16], al
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x46c24b
cmp word [esp + 0x1cd8], 0
je 0x46c1af
cmp byte [esp + 0x16], 0
je 0x46c24b
cmp byte [esp + 0x17], 0
jne 0x46c1ce
cmp byte [esp + 0x16], 0
jne 0x46c1ce
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x535a], 0
je 0x46c279
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x535a], 0
je 0x46c1e9
lea eax, [ebx + 0xc28]
push eax
mov ecx, ebx
call fcn.0046a880
lea ecx, [esp + 0x38]
call fcn.00401190
push 0
lea ecx, [esp + 0x3c]
push ecx
lea esi, [ebx + 0xc28]
push esi
push 0
call fcn.0043ad50
test al, al
je 0x46c269
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp + 0xc38]
adc edx, dword [esp + 0xc3c]
mov dword [esp + 0x24], edx
js 0x46c269
jg 0x46c22e
cmp eax, 0x100000
jbe 0x46c269
push 0x100000
push 0x5a0
call fcn.00466860
push eax
push 0x529c92
call fcn.00499df0
add esp, 0xc
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46c2f8
push ebp
call fcn.004b01c1
add esp, 4
jmp 0x46c2f8
mov eax, dword [esp + 0x1c]
push 0x400
push esi
push eax
call fcn.0046fc70
mov edi, dword [esp + 0x18]
test edi, edi
je 0x46c2c7
push 0x10000
push ebp
lea esi, [ebx + 0xc28]
push esi
mov ecx, ebx
call fcn.0046a6c0
test eax, eax
jne 0x46c2c7
push 0x4ca5e8
push esi
call fcn.0048b7d0
mov esi, eax
test esi, esi
je 0x46c2c7
push 2
push 0
push esi
call fcn.004b35d1
push esi
push edi
push 1
push ebp
call fcn.004b29b8
push esi
call fcn.004b2d6e
add esp, 0x20
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46c2dc
push ebp
call fcn.004b01c1
add esp, 4
cmp word [ebx + 0xc28], 0
lea eax, [ebx + 0xc28]
je 0x46c2f8
push 4
push eax
push 0
mov ecx, ebx
call fcn.00434530
mov dword [esp + 0x24e4], 0xffffffff
mov eax, ebx
mov ecx, dword [esp + 0x24dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c4]
xor ecx, esp
call fcn.004affec
add esp, 0x24d4
ret 4