Function at 0xa81e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
call fcn.00a83260
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
lea eax, [ebp + 8]
mov dword [esp + 4], eax
call fcn.00a83230
test al, 1
jne 0xa81e92
jmp 0xa81ea5
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00a83c70
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov eax, dword [ebp - 0x54]
mov ecx, eax
call fcn.00a83bb0
cmp eax, 0
je 0xa81efe
mov eax, dword [ebp - 0x54]
mov ecx, eax
call fcn.00a83bb0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
call fcn.00a83cc0
mov ecx, dword [ebp - 0x58]
cmp ecx, eax
jae 0xa81efe
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00a83b40
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 0x59], al
call fcn.00a83ce0
mov dl, byte [ebp - 0x59]
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x4c], 0
jne 0xa81f18
call fcn.00a83260
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov ecx, dword [ebp - 0x54]
call fcn.00a81c70
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x38], 0
jne 0xa81f7e
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x4c]
lea edx, [ebp + 8]
mov dword [esp], edx
mov dword [ebp - 0x60], ecx
call fcn.00a83b40
movsx ecx, al
mov dword [esp], ecx
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], ecx
call fcn.00a83d10
test al, 1
jne 0xa81f60
jmp 0xa81f6b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
jmp 0xa81f73
call fcn.00a83260
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov dword [ebp - 0x1c], 0x20
mov eax, esp
lea ecx, [ebp + 8]
mov dword [eax], ecx
call fcn.00a83b40
mov byte [ebp - 0x3d], al
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x38]
lea edx, [ebp - 0x1c]
lea esi, [ebp - 0x3c]
mov edi, dword [ebp - 0x54]
add edi, 0x40
mov ebx, esp
lea eax, [ebp - 0x48]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], edx
lea eax, [ebp - 0x3c]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x44]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], esi
lea eax, [ebp - 0x3d]
mov dword [ebx + 4], eax
mov dword [ebx], edi
call fcn.00a83d50
sub esp, 0x1c
mov ecx, eax
sub eax, 2
mov dword [ebp - 0x68], ecx
jb 0xa81ff4
jmp 0xa81fe3
mov eax, dword [ebp - 0x68]
sub eax, 3
je 0xa82077
jmp 0xa820b8
xor eax, eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
sub edx, ecx
mov dword [ebp - 0x4c], edx
cmp eax, dword [ebp - 0x4c]
jae 0xa8204c
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov esi, dword [edx + 0x4c]
mov edi, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [ebp - 0x6c], ecx
call fcn.00a96e0a
mov ecx, dword [ebp - 0x6c]
cmp ecx, eax
je 0xa8204c
call fcn.00a83260
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x3d]
cmp dword [ebp - 0x44], ecx
je 0xa8206a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0xa820c0
call fcn.00a83260
mov dword [ebp - 0x10], eax
jmp 0xa820c0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x4c]
movsx edx, byte [ebp - 0x3d]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00a83d10
test al, 1
jne 0xa8209a
jmp 0xa820a5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
jmp 0xa820ad
call fcn.00a83260
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x10], eax
jmp 0xa820c0
call fcn.00a83260
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret 4