Function at 0x46cbb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c5326
mov eax, dword fs:[0]
push eax
mov eax, 0x24c8
call fcn.004b1040
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x24c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4da8f0]
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.00434590
mov dword [esp + 0x24e4], 0
lea eax, [esp + 0x14d8]
push eax
lea ecx, [esp + 0x1cdc]
push ecx
mov ecx, 0x523ff0
mov byte [ebx + 0x1c2c], 0
call fcn.00472540
cmp word [esi + 0x435a], 0
lea eax, [esi + 0x435a]
je 0x46cc5f
lea edx, [esp + 0x1cd8]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46cc50
cmp word [esi + 0x4b5a], 0
lea eax, [esi + 0x4b5a]
je 0x46cc8f
lea edx, [esp + 0x14d8]
sub edx, eax
jmp 0x46cc80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46cc80
push 6
lea edi, [esi + 0x810]
push str.WinCon
push edi
mov dword [esp + 0x28], edi
call fcn.00456820
push eax
call fcn.004b4dbd
add esp, 0xc
test eax, eax
jne 0x46ccbd
xor edx, edx
mov word [esp + 0x14d8], dx
xor eax, eax
mov word [ebx + 0xc28], ax
cmp word [edi], ax
je 0x46cff5
cmp word [esp + 0x1cd8], ax
jne 0x46ccef
cmp word [esp + 0x14d8], ax
jne 0x46ccef
cmp byte [esi + 0x535a], al
je 0x46cff5
push edi
call fcn.00435ac0
test al, al
je 0x46cff5
lea edx, [ebx + 0x1428]
mov eax, edi
sub edx, edi
jmp 0x46cd10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46cd10
lea eax, [ebx + 0xc28]
push eax
push str.Rar_SF
mov dword [ebx + 0x1c28], edi
call fcn.0048c630
mov esi, eax
test esi, esi
je 0x46cfd9
push edi
mov ecx, ebx
call fcn.0046b200
test al, al
je 0x46cd70
push 0x5f5
call fcn.004671c0
push eax
call fcn.0049a620
add esp, 4
push 1
mov ecx, 0x508304
call fcn.0042cc20
jmp 0x46cfd9
push esi
push edi
mov ecx, ebx
call fcn.0046b2b0
test al, al
je 0x46cff5
push esi
call fcn.004b3dae
mov esi, 0x10000
push esi
call fcn.004b1137
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x46cda9
mov ecx, 0x508304
call fcn.0042cdb0
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.0046b360
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 0x46cf48
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 0x46ce85
cmp word [esp + 0x1cd8], 0
mov ebp, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
je 0x46ce3c
push esi
push 0x46b1d0
push 3
push edi
call ebp
push esi
push 0x46b1d0
push 0xe
push edi
call ebp
push 0x64
lea ecx, [esp + 0x1cdc]
push ecx
push esi
mov ecx, ebx
call fcn.0046ae90
mov byte [esp + 0x17], al
cmp word [esp + 0x14d8], 0
je 0x46ce7a
cmp word [esp + 0x1cd8], 0
je 0x46ce59
cmp byte [esp + 0x17], 0
je 0x46ce7a
push esi
push 0x46b1d0
push 2
push edi
call ebp
push 0x65
lea edx, [esp + 0x14dc]
push edx
push esi
mov ecx, ebx
call fcn.0046b090
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 0x46cf48
cmp word [esp + 0x14d8], 0
je 0x46ceac
cmp byte [esp + 0x16], 0
je 0x46cf48
cmp byte [esp + 0x17], 0
jne 0x46cecb
cmp byte [esp + 0x16], 0
jne 0x46cecb
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x535a], 0
je 0x46cf76
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x535a], 0
je 0x46cee6
lea eax, [ebx + 0xc28]
push eax
mov ecx, ebx
call fcn.0046b520
lea ecx, [esp + 0x38]
call fcn.004010e0
push 0
lea edx, [esp + 0x3c]
push edx
lea esi, [ebx + 0xc28]
push esi
push 0
call fcn.0043b280
test al, al
je 0x46cf66
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, dword [esp + 0xc38]
adc ecx, dword [esp + 0xc3c]
mov dword [esp + 0x24], ecx
js 0x46cf66
jg 0x46cf2b
cmp eax, 0x100000
jbe 0x46cf66
push 0x100000
push 0x5a0
call fcn.004671c0
push eax
push 0x52aca2
call fcn.0049ac10
add esp, 0xc
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46cff5
push ebp
call fcn.004b1201
add esp, 4
jmp 0x46cff5
mov edx, dword [esp + 0x1c]
push 0x400
push esi
push edx
call fcn.004709a0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x46cfc4
push 0x10000
push ebp
lea esi, [ebx + 0xc28]
push esi
mov ecx, ebx
call fcn.0046b360
test eax, eax
jne 0x46cfc4
push 0x4cb694
push esi
call fcn.0048c600
mov esi, eax
test esi, esi
je 0x46cfc4
push 2
push 0
push esi
call fcn.004b4611
push esi
push edi
push 1
push ebp
call fcn.004b39f8
push esi
call fcn.004b3dae
add esp, 0x20
mov byte [esp + 0x24e4], 0
test ebp, ebp
je 0x46cfd9
push ebp
call fcn.004b1201
add esp, 4
cmp word [ebx + 0xc28], 0
lea eax, [ebx + 0xc28]
je 0x46cff5
push 4
push eax
push 0
mov ecx, ebx
call fcn.004349d0
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.004b102c
add esp, 0x24d4
ret 4