Function at 0x4cb830
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x685a8c
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov ebp, dword [esp + 0x178]
mov esi, dword [esp + 0x180]
mov edi, ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], eax
call fcn.004afa40
xor ebx, ebx
lea ecx, [edi + 0x2b8]
mov dword [esp + 0x170], ebx
call fcn.0054cfe0
test eax, eax
jne 0x4cb8d2
mov edx, dword [esi]
mov eax, dword [str.No_cache_roots_have_been_set.__Need_to_call_AddRoot_at_least_once.]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x170], 0xffffffff
call fcn.004afa70
xor al, al
jmp 0x4cbb60
lea ecx, [esp + 0x4c]
call fcn.0047f3a0
push esi
lea eax, [esp + 0x50]
push eax
push ebp
mov ecx, edi
mov byte [esp + 0x17c], 1
call fcn.004cadd0
cmp al, bl
jne 0x4cb916
mov edx, dword [esi]
mov eax, dword [str.Failed_to_convert_resource_name_to_filename]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.0047f440
jmp 0x4cb8b7
cmp byte [edi + 0x2b4], bl
je 0x4cb938
lea eax, [edi + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.00480da0
push eax
call fcn.004cb1f0
add esp, 8
cmp al, bl
je 0x4cb904
push 0x6d9e08
lea ecx, [esp + 0x50]
call fcn.00480da0
push eax
call fcn.004abc80
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x4cb9ae
cmp byte [edi + 0x2b4], bl
je 0x4cb973
add edi, 0x2c
push edi
lea ecx, [esp + 0x50]
call fcn.00480da0
push eax
call fcn.004cb3b0
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_open_file
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [esp + 0x4c]
call fcn.00480da0
mov edx, dword [edi + 0x2c]
push eax
push str.filename
mov ecx, esi
call edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.0047f440
jmp 0x4cb8b7
push ebx
push 0xa
push ebp
call fcn.0062f5e2
add esp, 0xc
test eax, eax
je 0x4cba20
cmp byte [edi + 0x2b4], bl
je 0x4cb9dc
add edi, 0x2c
push edi
lea ecx, [esp + 0x50]
call fcn.00480da0
push eax
call fcn.004cb3b0
add esp, 8
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_seek_to_position_in_cache_file.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [esp + 0x4c]
call fcn.00480da0
push eax
mov eax, dword [edi + 0x2c]
push str.filename
mov ecx, esi
call eax
push ebp
call fcn.0062d050
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.0047f440
jmp 0x4cb8b7
lea ecx, [esp + 0x18]
call fcn.004aca50
mov ecx, dword [esp + 0x14]
push ecx
mov byte [esp + 0x174], 2
call fcn.004ac440
fstp qword [esp + 0x2c]
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00468060
push 8
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x178], 3
call fcn.00469150
call fcn.004b10e0
test al, al
jne 0x4cba75
lea ecx, [esp + 0x30]
call fcn.00468330
push ebp
push 1
push 8
lea ecx, [esp + 0x3c]
call fcn.00467d80
push eax
call fcn.0062e901
push ebp
mov dword [esp + 0x28], eax
call fcn.0062d050
add esp, 0x14
cmp byte [edi + 0x2b4], bl
je 0x4cbab4
add edi, 0x2c
push edi
lea ecx, [esp + 0x50]
call fcn.00480da0
push eax
call fcn.004cb3b0
add esp, 8
cmp dword [esp + 0x14], 1
je 0x4cbb18
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_update_cache_file.
mov ecx, esi
call edx
mov edi, dword [esi]
lea ecx, [esp + 0x4c]
call fcn.00480da0
push eax
mov eax, dword [edi + 0x2c]
push str.filename
mov ecx, esi
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 2
call fcn.00468860
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call fcn.004aca60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.0047f440
jmp 0x4cb8b7
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 2
call fcn.00468860
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call fcn.004aca60
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.0047f440
lea ecx, [esp + 0x1c]
mov dword [esp + 0x170], 0xffffffff
call fcn.004afa70
mov al, 1
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x160
ret 0xc