Function at 0x4caf80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x63c7f9
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x6bc858]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x44], esi
je 0x4cb224
cmp byte [ecx + 0x49], 0
je 0x4cb224
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4cb20c
push esi
push 8
lea ecx, [esp + 0x68]
call fcn.004ca780
mov dword [esp + 0x90], esi
lea esp, [esp]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x64]
call fcn.00480720
mov esi, eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 1
call fcn.00480720
mov edi, eax
mov ecx, esi
mov byte [esp + 0x90], 2
call fcn.004819d0
mov ebx, dword [esp + 0x74]
mov ecx, edi
mov esi, eax
call fcn.004819d0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
add ebx, esi
push ebx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
push 3
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x94], 1
call fcn.00564140
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 3
call fcn.00413660
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 1
call fcn.00564180
push 3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 0
call fcn.00564140
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 4
call fcn.00413660
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 0
call fcn.00564180
mov eax, esi
sub eax, 0
je 0x4cb0f6
dec eax
je 0x4cb0fa
sub eax, 2
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
jne 0x4cb207
jmp 0x4cb21f
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x64]
call fcn.00480720
mov ecx, eax
mov byte [esp + 0x90], 5
call fcn.004819d0
mov esi, dword [esp + 0x20]
push 3
lea ecx, [esp + 0x20]
sub esi, eax
mov byte [esp + 0x94], 0
call fcn.00564140
lea ecx, [esp + 0x3c]
mov byte [esp + 0x90], 6
call fcn.00413660
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 0
call fcn.00564180
test esi, esi
je 0x4cb190
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x64]
call fcn.00480720
mov byte [esp + 0x90], 7
or dword [esp + 0x14], 1
mov ecx, eax
call fcn.004819d0
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005f5d70
add esp, 0x10
cmp esi, eax
je 0x4cb190
mov bl, 1
jmp 0x4cb192
xor bl, bl
mov dword [esp + 0x90], 0
test byte [esp + 0x14], 1
je 0x4cb1d6
and dword [esp + 0x14], 0xfffffffe
push 3
lea ecx, [esp + 0x30]
call fcn.00564140
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 8
call fcn.00413660
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 0
call fcn.00564180
test bl, bl
jne 0x4cb1f8
cmp byte [edi + 0x49], bl
je 0x4cb210
test esi, esi
jne 0x4cb000
push esi
push 8
lea ecx, [esp + 0x68]
call fcn.00460990
jmp 0x4cb000
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00412410
xor al, al
jmp 0x4cb226
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00412410
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret