Function at 0x4b36a0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404c]
mov eax, 0x404c
call fcn.00507730
push 0xffffffffffffffff
push 0x53cdc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x4048], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0x4054]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], ebx
call fcn.00473520
mov dword [ebp - 4], 0
lea eax, [ebp + 0x3048]
push 0x800
push eax
lea eax, [ebp + 0x2048]
mov byte [edi + 0x302c], 0
push eax
mov ecx, 0x5ab4d8
call fcn.004b8f70
lea eax, [ebp + 0x2048]
push eax
call fcn.004750c0
test al, al
jne 0x4b3737
xor eax, eax
mov word [ebp + 0x2048], ax
lea eax, [ebp + 0x3048]
push eax
call fcn.004750c0
test al, al
jne 0x4b3750
xor eax, eax
mov word [ebp + 0x3048], ax
xor eax, eax
cmp word [ebx + 0x8502], 0
mov word [ebp + 0x1048], ax
lea eax, [ebx + 0x8502]
je 0x4b377b
push 0x800
push eax
lea eax, [ebp + 0x2048]
push eax
call fcn.0049dc20
cmp word [ebx + 0x9502], 0
lea eax, [ebx + 0x9502]
je 0x4b379d
push 0x800
push eax
lea eax, [ebp + 0x3048]
push eax
call fcn.0049dc20
cmp word [ebx + 0xa502], 0
lea eax, [ebx + 0xa502]
je 0x4b37bf
push 0x800
push eax
lea eax, [ebp + 0x1048]
push eax
call fcn.0049dc20
cmp word [ebp + 0x3048], 0x2a
jne 0x4b37dc
cmp word [ebp + 0x304a], 0
jne 0x4b37dc
xor eax, eax
mov word [ebp + 0x3048], ax
push 6
push str.WinCon
add ebx, 0x1010
push ebx
call fcn.00486220
push eax
call fcn.004a1380
test eax, eax
jne 0x4b380b
xor ecx, ecx
mov word [ebp + 0x1048], ax
mov word [ebp + 0x3048], cx
jmp 0x4b3819
mov cx, word [ebp + 0x3048]
mov ax, word [ebp + 0x1048]
xor edx, edx
lea esi, [edi + 0x1028]
mov word [esi], dx
cmp word [ebx], dx
je 0x4b3b96
cmp word [ebp + 0x2048], dx
jne 0x4b384f
test cx, cx
jne 0x4b384f
test ax, ax
jne 0x4b384f
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xb502], dl
je 0x4b3b96
push ebx
call fcn.004750c0
test al, al
je 0x4b3b96
push 0x800
push ebx
lea eax, [edi + 0x2028]
push eax
call fcn.0049dc20
push 0x800
push esi
push str.Rar_SF
mov dword [edi + 0x3028], ebx
call fcn.004d6eb0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4b3b7c
push ebx
mov ecx, edi
call fcn.004b4be0
test al, al
je 0x4b38c0
push 0x5f5
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 4
mov ecx, 0x5b77e4
push 1
call fcn.0046e7a0
jmp 0x4b3b7c
push dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.004b4330
test al, al
je 0x4b3b96
push dword [ebp - 0x18]
call fcn.00525a4d
add esp, 4
lea ecx, [ebp - 0x38]
push 0x10000
call fcn.00404ad0
mov byte [ebp - 4], 1
mov ecx, edi
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push ebx
call fcn.004b50a0
push 0
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4b3b0c
push 3
push 0
push esi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4b3a61
mov cx, word [ebp + 0x2048]
test cx, cx
je 0x4b3981
push dword [ebp - 0x14]
push 0x4b4550
push 3
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push dword [ebp - 0x14]
push 0x4b4550
push 0xe
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0x64
lea eax, [ebp + 0x2048]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.004b3e40
mov cx, word [ebp + 0x2048]
mov byte [ebp - 0xe], al
jmp 0x4b3984
mov al, byte [ebp - 0xe]
cmp word [ebp + 0x3048], 0
jne 0x4b399c
cmp word [ebp + 0x1048], 0
je 0x4b3a58
test cx, cx
je 0x4b39a9
test al, al
je 0x4b3a58
push 0x5517f4
lea eax, [ebp + 0x3048]
push eax
call fcn.00484650
test al, al
jne 0x4b39d3
push 0x5517f4
lea eax, [ebp + 0x1048]
push eax
call fcn.00484650
test al, al
je 0x4b39e6
push dword [ebp - 0x14]
push 0x4b4550
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push dword [ebp - 0x14]
push 0x4b4550
push 0x5517fc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
cmp word [ebp + 0x3048], 0
je 0x4b3a38
push 0x5517f4
lea eax, [ebp + 0x3048]
push eax
call fcn.00484650
push 0x65
test al, al
mov ecx, edi
lea eax, [ebp + 0x3048]
push eax
push dword [ebp - 0x14]
je 0x4b3a30
call fcn.004b3cb0
jmp 0x4b3a35
call fcn.004b40c0
mov byte [ebp - 0xd], al
cmp word [ebp + 0x1048], 0
je 0x4b3a58
push 0x66
lea eax, [ebp + 0x1048]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.004b40c0
or byte [ebp - 0xd], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4b3b0c
cmp word [ebp + 0x3048], 0
mov al, byte [ebp - 0xd]
je 0x4b3a89
test al, al
je 0x4b3b0c
cmp byte [ebp - 0xe], 0
jne 0x4b3aa5
test al, al
mov eax, dword [ebp - 0x20]
jne 0x4b3aa8
cmp byte [eax + 0xb502], 0
je 0x4b3b26
jmp 0x4b3aa8
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xb502], 0
je 0x4b3ab9
push esi
mov ecx, edi
call fcn.004b43e0
lea ecx, [ebp]
call fcn.00404cb0
push 0
lea eax, [ebp]
push eax
push esi
call fcn.004769d0
test al, al
je 0x4b3b1a
mov ecx, dword [ebp - 0x18]
xor eax, eax
add ecx, dword [ebp + 0x1000]
adc eax, dword [ebp + 0x1004]
mov dword [ebp - 0x20], eax
jne 0x4b3aef
cmp ecx, 0x200000
jbe 0x4b3b1a
push 0x200000
push 0x5a0
call fcn.00497960
push eax
push 0x598eea
call fcn.004dd4d0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00404d90
jmp 0x4b3b96
push 0x800
push esi
push ebx
call fcn.0049dc20
cmp dword [ebp - 0x18], 0
je 0x4b3b70
push dword [ebp - 0x34]
mov ecx, edi
push dword [ebp - 0x38]
push esi
call fcn.004b50a0
test eax, eax
jne 0x4b3b70
push 0x551804
push esi
call fcn.004d77f0
mov ebx, eax
test ebx, ebx
je 0x4b3b70
push 2
push 0
push ebx
call fcn.00528c86
push ebx
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x38]
call fcn.00525e32
push ebx
call fcn.00525a4d
add esp, 0x20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00404d90
cmp word [esi], 0
je 0x4b3b96
mov ecx, dword [edi]
push 4
push esi
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4048]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x404c]
pop ebp
ret 4