Function at 0xa2f260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa8c5f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
push ebx
mov ebx, dword [ebp + 0x28]
push esi
push edi
or eax, 0xffffffff
xor edi, edi
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], edi
mov dword [ebx], 1
mov dword [ebp - 4], edi
call fcn.00a155c0
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 1
call fcn.00a155c0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x274]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.00a676c0
mov eax, dword [ebp + 0x14]
add esp, 8
lea edx, [ebp - 0x484]
push edx
push eax
call fcn.00a676c0
mov edx, dword [ebp - 0x26c]
add esp, 8
lea ecx, [ebp - 0x64]
push ecx
push edi
push edx
push edi
call fcn.009f2550
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x26c]
push edi
push eax
push 3
push edi
push 1
push 0x80000000
push ecx
push edi
call fcn.00a2dcc0
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x24], esi
jne 0xa2f31e
mov dword [ebx], edi
jmp 0xa2f351
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x47c]
push edi
push edx
push 4
push edi
push edi
push 0xc0000000
push eax
push edi
call fcn.00a2dcc0
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
jne 0xa2f382
push esi
push 0
call fcn.00a2af50
mov dword [ebx], 0
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 1
call fcn.00a155e0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0
call fcn.00a155e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push 0x8000
mov dword [ebp + 0x10], ebx
call fcn.009ef3b0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0xa2f4ea
lea ecx, [ebp - 0x1c]
push ecx
push esi
push ebx
call fcn.00a28320
mov edx, dword [ebp + 0x18]
xor edi, edi
test edx, edx
mov dword [ebp - 0x20], eax
je 0xa2f3d6
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
push 1
push 1
push ebx
push edi
push ecx
push eax
push ebx
push edi
push ecx
push eax
call edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [edx], 1
jmp 0xa2f3ed
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov esi, 0x8000
test ecx, ecx
jg 0xa2f401
jl 0xa2f3ff
cmp eax, esi
jae 0xa2f401
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x3c]
push 0
push edx
push esi
push eax
push ecx
push 0
call fcn.00a2aaf0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
push 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0xa2f45c
test eax, eax
je 0xa2f45c
cmp dword [ebp - 0x3c], esi
jne 0xa2f45c
cmp dword [ebp - 0x34], esi
jne 0xa2f45c
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor eax, eax
add edi, esi
adc ebx, eax
sub edx, esi
sbb ecx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
jmp 0xa2f46c
mov edx, dword [ebp + 0x28]
mov dword [ebp + 0x10], 1
mov dword [edx], 0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0xa2f47f
cmp dword [eax], 0
je 0xa2f47f
mov dword [ebp + 0x10], 1
mov edx, dword [ebp + 0x18]
test edx, edx
je 0xa2f4b0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0xa2f4b0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push 1
push ebx
push edi
push eax
push ecx
push ebx
push edi
push eax
push ecx
call edx
mov dword [ebp + 0x10], eax
cmp edi, dword [ebp - 0x20]
jne 0xa2f4ba
cmp ebx, dword [ebp - 0x1c]
je 0xa2f4ce
mov eax, dword [ebp + 0x10]
test eax, eax
je 0xa2f3ea
cmp eax, 3
je 0xa2f3ea
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.009ef440
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x14], 0
push esi
push 0
call fcn.00a2af50
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x60]
push eax
push ecx
push edi
push 0
call fcn.00a2e6c0
push edi
push 0
call fcn.00a2af50
cmp ebx, 1
je 0xa2f518
cmp ebx, 2
jne 0xa2f52c
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x28]
mov dword [edx], 0
cmp ebx, 1
jne 0xa2f53c
mov eax, dword [ebp + 0x14]
push eax
push 0
call fcn.00a25eb0
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 1
call fcn.00a155e0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0
call fcn.00a155e0
mov ecx, dword [ebp + 0x28]
cmp dword [ecx], 0
je 0xa2f36f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret