Function at 0xa19960
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0xa8b20e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50c]
push edi
mov ecx, esi
call fcn.00a15640
mov edi, eax
push 0x1000
push 0x1000
lea ecx, [esp + 0xc0]
mov dword [esp + 0x40], edi
call fcn.00a714e0
mov al, byte [esp + 0x13]
xor ebx, ebx
mov dword [esp + 0x508], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov esi, dword [esi + 4]
mov byte [esp + 0x508], 1
lea ebp, [edi + esi*2]
mov esi, ebp
sub esi, edi
je 0xa19a6a
cmp esi, ebx
mov eax, esi
jge 0xa199ea
xor eax, eax
push eax
call fcn.009ef380
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x24]
call fcn.00a1cc30
mov edx, dword [esp + 0x38]
push eax
push ebp
push edx
lea ecx, [esp + 0x24]
call fcn.00a1cc30
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.00a1cc30
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.009ee060
mov eax, dword [esp + 0x1c]
push eax
call fcn.00a7d8f0
lea ecx, [edi + esi]
add esp, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0xa19a58
xor eax, eax
jmp 0xa19a5e
mov eax, dword [esp + 0x20]
sub eax, ecx
add eax, edi
mov dword [esp + 0x1c], edi
add eax, esi
mov dword [esp + 0x20], eax
push ebx
push 2
lea ecx, [esp + 0x88]
call fcn.00a71d20
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x510], 2
call fcn.00a1cc60
lea ecx, [esp + 0x13]
mov dword [esp + 0x4c], 0x18
push ecx
lea ecx, [esp + 0x54]
call fcn.00a600a0
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 3
call fcn.00a1ce70
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0xa8]
call fcn.00a600a0
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x510], 4
call fcn.00a1d080
mov cl, byte [esp + 0x12]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x28]
push 0x1000
push edx
lea ecx, [esp + 0xac]
mov byte [esp + 0x510], 5
call fcn.00a71f10
mov eax, dword [esp + 0xc0]
mov dword [eax + 0x70], 0x1000
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0xa19b4c
xor eax, eax
jmp 0xa19b52
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0xc0]
push str..res
mov dword [ecx + 0x74], eax
lea ecx, [esp + 0xbc]
call fcn.00a718a0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0xa19b79
xor eax, eax
jmp 0xa19b7f
mov eax, dword [esp + 0x30]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.00a71640
mov dl, byte [esp + 0x12]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x3c], dl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xb8]
push eax
mov byte [esp + 0x50c], 6
call fcn.00a71990
mov ebp, dword [esp + 0x514]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
cmp ebp, ebx
mov dword [esp + 0x60], 0x20
mov dword [esp + 0x64], 0x88
je 0xa19bea
mov dword [esp + 0x64], 0x98
lea ecx, [esp + 0x2f8]
push 0x104
push ecx
push ebx
call fcn.00a221b0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x2f8]
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], 2
mov dword [esp + 0x80], eax
call fcn.00a1a240
mov edx, dword [esp + 0x51c]
add esp, 4
cmp eax, 0xffffffff
mov dword [edx], eax
jne 0xa19d90
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x78
je 0xa19d90
call esi
push ebx
mov edi, eax
call fcn.00a50c00
add esp, 4
lea ecx, [esp + 0xe8]
push eax
call fcn.00a152e0
mov eax, str.TEMP
mov byte [esp + 0x508], 7
test eax, eax
je 0xa19c81
push eax
call fcn.00a7e07a
add esp, 4
jmp 0xa19c83
xor eax, eax
push eax
push str.TEMP
lea ecx, [esp + 0xf0]
call fcn.00a15880
push ebx
lea ecx, [esp + 0xec]
call fcn.00a15640
push eax
call fcn.00a1ffe0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [esp + 0xec]
push str._d.manifest
push ecx
call fcn.00a16060
add esp, 0xc
lea ecx, [esp + 0xe8]
push ebx
push 0x80
push 1
push ebx
push ebx
push 2
call fcn.00a15640
push eax
call fcn.00a227b0
mov esi, eax
cmp esi, 0xffffffff
je 0xa19d75
mov edi, dword [esp + 0x38]
lea edx, [esp + 0xb4]
push ebx
push edx
push edi
call fcn.00a7e07a
add esp, 4
shl eax, 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x60]
cmp ebp, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], 0x20
mov dword [esp + 0x64], ebx
je 0xa19d3a
mov dword [esp + 0x64], 0x10
lea ecx, [esp + 0xe8]
call fcn.00a15640
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
call fcn.00a1a240
mov ecx, dword [esp + 0x51c]
add esp, 4
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xf0]
mov edi, eax
push edx
call fcn.00a20610
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x508], 6
call fcn.00a155e0
mov eax, dword [esp + 0x518]
cmp dword [eax], 0xffffffff
jne 0xa19dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0xa19dab
xor esi, esi
jmp 0xa19db0
mov esi, 1
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ebx
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00a7d8f0
add esp, 8
lea ecx, [esp + 0xa4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x508], 3
call fcn.00a1cbb0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 2
call fcn.00a1d050
mov edx, dword [esp + 0x54]
push edx
call fcn.00a7d8f0
add esp, 4
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
push eax
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x510], 8
call fcn.00a1ce40
mov edx, dword [esp + 0x98]
push edx
call fcn.00a7d8f0
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
push 1
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x50c], 1
call fcn.009f6b50
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x510], bl
call fcn.009ee060
mov edx, dword [esp + 0x1c]
push edx
call fcn.00a7d8f0
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x508], 9
call fcn.009fd400
lea ecx, [esp + 0xc8]
mov dword [esp + 0x508], 0xffffffff
call fcn.009fd400
mov ecx, dword [esp + 0x500]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4fc
ret 0xc