Function at 0x4f6f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64a8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x4f7252
cmp byte [ecx + 0x41], 0
je 0x4f7252
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4f7245
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x28], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 8
jae 0x4f6fea
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x4f7111
test eax, eax
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x4f7035
cmp edx, 0x10
mov ecx, eax
jae 0x4f701c
lea ecx, [esp + 0x28]
cmp ecx, ebx
ja 0x4f7035
cmp edx, 0x10
mov ecx, eax
jae 0x4f702b
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jbe 0x4f7042
call fcn.0062492b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x4f706d
cmp edx, 0x10
mov ecx, eax
jae 0x4f7056
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jb 0x4f706d
call fcn.0062492b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
mov edi, dword [esp + 0x38]
jb 0x4f711e
test eax, eax
mov esi, eax
je 0x4f70a8
cmp edx, 0x10
mov ecx, eax
jae 0x4f708b
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x4f70a8
cmp edx, 0x10
mov ecx, eax
jae 0x4f709a
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0x14]
jbe 0x4f70b5
call fcn.0062492b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x4f70d6
cmp edx, 0x10
jae 0x4f70c7
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x4f70d6
call fcn.0062492b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
add ebx, edi
push ebx
mov ebx, dword [esp + 0x18]
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x4f7127
sub eax, 1
je 0x4f712b
sub eax, 2
lea ecx, [esp + 0x24]
jne 0x4f7240
jmp 0x4f724d
lea ebx, [esp + 0x28]
mov dword [esp + 0x14], ebx
jmp 0x4f7011
lea esi, [esp + 0x28]
jmp 0x4f7080
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
mov eax, dword [esp + 0x28]
jb 0x4f71df
test eax, eax
mov esi, eax
je 0x4f7166
cmp edx, 0x10
mov ecx, eax
jae 0x4f714d
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x4f7166
cmp edx, 0x10
mov ecx, eax
jae 0x4f715c
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x4f7173
call fcn.0062492b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffe
je 0x4f719e
cmp edx, 0x10
mov ecx, eax
jae 0x4f7187
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x4f719e
call fcn.0062492b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x4f721d
cmp edx, 0x10
jae 0x4f71af
lea eax, [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00446500
mov esi, dword [esp + 0x1c]
cmp esi, 0xfffffffe
mov ebx, dword [esp + 0x20]
je 0x4f71f9
test esi, esi
jne 0x4f71d4
call fcn.0062492b
cmp dword [esi + 0x18], 0x10
jb 0x4f71e8
mov eax, dword [esi + 4]
jmp 0x4f71eb
lea esi, [esp + 0x28]
jmp 0x4f7142
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x4f71f9
call fcn.0062492b
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push ebx
call fcn.00627cab
add esp, 0x10
cmp edi, eax
jne 0x4f723c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x41], 0
je 0x4f7249
test edi, edi
jne 0x4f6ffe
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.00443660
jmp 0x4f6ff6
lea ecx, [esp + 0x24]
call fcn.00401c70
xor al, al
jmp 0x4f7254
lea ecx, [esp + 0x24]
call fcn.00401c70
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret