Function at 0x46b7c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c3586
mov eax, dword fs:[0]
push eax
mov eax, 0x24c8
call fcn.004af840
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x24c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8620]
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.00430fc0
mov dword [esp + 0x24e4], 0
lea eax, [esp + 0x1cd8]
push eax
lea ecx, [esp + 0x14dc]
push ecx
mov ecx, 0x52f5f8
mov byte [ebx + 0x1c24], 0
call fcn.00471050
cmp word [esi + 0x435a], 0
lea eax, [esi + 0x435a]
je 0x46b86f
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 0x46b860
cmp word [esi + 0x4b5a], 0
lea eax, [esi + 0x4b5a]
je 0x46b89f
lea edx, [esp + 0x1cd8]
sub edx, eax
jmp 0x46b890
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46b890
xor edx, edx
lea edi, [esi + 0x810]
mov word [ebx + 0xc20], dx
mov dword [esp + 0x1c], edi
cmp word [edi], dx
je 0x46bbda
cmp word [esp + 0x14d8], dx
jne 0x46b8db
cmp word [esp + 0x1cd8], dx
jne 0x46b8db
cmp byte [esi + 0x535a], dl
je 0x46bbda
push edi
call fcn.00432480
test al, al
je 0x46bbda
lea edx, [ebx + 0x1420]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46b8f3
lea eax, [ebx + 0xc20]
push eax
push str.Rar_SF
mov dword [ebx + 0x1c20], edi
call fcn.0048a8c0
mov esi, eax
test esi, esi
je 0x46bbbc
push edi
mov ecx, ebx
call fcn.00469e40
test al, al
je 0x46b953
push 0x5f5
call fcn.00466160
push eax
call fcn.00498840
add esp, 4
push 1
mov ecx, 0x513904
call fcn.00429880
jmp 0x46bbbc
push esi
push edi
mov ecx, ebx
call fcn.00469ef0
test al, al
je 0x46bbda
push esi
call fcn.004b227e
mov esi, 0x10000
push esi
call fcn.004af0e6
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x46b98c
mov ecx, 0x513904
call fcn.00429a10
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.00469fa0
push 0
lea edi, [ebx + 0xc20]
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
test esi, esi
je 0x46bb2b
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 0x46ba68
cmp word [esp + 0x14d8], 0
mov ebp, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
je 0x46ba1f
push esi
push 0x469e10
push 3
push edi
call ebp
push esi
push 0x469e10
push 0xe
push edi
call ebp
push 0x64
lea eax, [esp + 0x14dc]
push eax
push esi
mov ecx, ebx
call fcn.00469ad0
mov byte [esp + 0x17], al
cmp word [esp + 0x1cd8], 0
je 0x46ba5d
cmp word [esp + 0x14d8], 0
je 0x46ba3c
cmp byte [esp + 0x17], 0
je 0x46ba5d
push esi
push 0x469e10
push 2
push edi
call ebp
push 0x65
lea ecx, [esp + 0x1cdc]
push ecx
push esi
mov ecx, ebx
call fcn.00469cd0
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 0x46bb2b
cmp word [esp + 0x1cd8], 0
je 0x46ba8f
cmp byte [esp + 0x16], 0
je 0x46bb2b
cmp byte [esp + 0x17], 0
jne 0x46baae
cmp byte [esp + 0x16], 0
jne 0x46baae
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x535a], 0
je 0x46bb59
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x535a], 0
je 0x46bac9
lea eax, [ebx + 0xc20]
push eax
mov ecx, ebx
call fcn.0046a160
lea ecx, [esp + 0x38]
call fcn.00401190
push 0
lea ecx, [esp + 0x3c]
push ecx
lea esi, [ebx + 0xc20]
push esi
push 0
call fcn.00437bb0
test al, al
je 0x46bb49
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp + 0xc38]
adc edx, dword [esp + 0xc3c]
mov dword [esp + 0x24], edx
js 0x46bb49
jg 0x46bb0e
cmp eax, 0x100000
jbe 0x46bb49
push 0x100000
push 0x5a0
call fcn.00466160
push eax
push 0x5362aa
call fcn.00498e30
add esp, 0xc
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46bbda
push ebp
call fcn.004af1b0
add esp, 4
jmp 0x46bbda
mov eax, dword [esp + 0x1c]
push 0x400
push esi
push eax
call fcn.0046f500
mov edi, dword [esp + 0x18]
test edi, edi
je 0x46bba7
push 0x10000
push ebp
lea esi, [ebx + 0xc20]
push esi
mov ecx, ebx
call fcn.00469fa0
test eax, eax
jne 0x46bba7
push 0x4c9ca8
push esi
call fcn.0048a890
mov esi, eax
test esi, esi
je 0x46bba7
push 2
push 0
push esi
call fcn.004b1363
push esi
push edi
push 1
push ebp
call fcn.004b1ec8
push esi
call fcn.004b227e
add esp, 0x20
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46bbbc
push ebp
call fcn.004af1b0
add esp, 4
cmp word [ebx + 0xc20], 0
lea eax, [ebx + 0xc20]
je 0x46bbda
push 0
push 1
push eax
push 0
mov ecx, ebx
call fcn.00431400
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.004af00b
add esp, 0x24d4
ret 4