Function at 0x428e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e29c
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
xor edi, edi
mov dword [ebp - 0x3c], edi
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.00429810
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x428f3b
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
lea ecx, [eax + 4]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x28]
cmp eax, ecx
je 0x428f3b
mov eax, dword [ecx]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x428f4c
push eax
call esi
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x428f57
push eax
call esi
lea eax, [ebp - 0x44]
push eax
call fcn.00429910
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x428f87
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
lea ecx, [eax + 4]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x34]
cmp eax, ecx
je 0x428f87
mov eax, dword [ecx]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x428f92
push eax
call esi
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x428f9d
push eax
call esi
lea ecx, [ebp - 0x40]
call fcn.004296e0
lea ecx, [ebp - 0x3c]
cmp ecx, eax
je 0x428fb7
mov edi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x428fc1
push eax
call esi
mov dl, 1
xor ecx, ecx
call fcn.00449380
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x428ffb
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], str.GetUserToken_failed
push eax
lea ecx, [ebp - 0x88]
call fcn.00467588
push 0x4c084c
lea eax, [ebp - 0x88]
push eax
call fcn.0046b2bb
lea ecx, [ebp - 0x38]
mov edx, eax
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004294e0
mov ecx, eax
add esp, 8
lea eax, [ebp - 0x68]
cmp eax, ecx
je 0x42904b
mov eax, dword [ecx]
lea edx, [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x68], eax
lea eax, [ecx + 4]
mov dword [ecx], 0
cmp edx, eax
je 0x42903f
mov edx, dword [eax]
mov dword [ebp - 0x54], edx
mov dword [eax], 0
mov dword [ebp - 0x64], edx
mov eax, dword [ecx + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x429055
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42905f
push eax
call esi
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x28]
mov dword [ebx + 0xc], esi
lea esp, [esp]
mov ecx, dword [ebx + 4]
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x74]
call fcn.00428110
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x42912c
cmp ebx, 0x9d
je 0x42912c
sub esp, 8
lea ecx, [ebp - 0x140]
call fcn.00403750
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x8c], str.ui_file_downloader::operator___
mov edx, str.fileDownloader_download_failed_err
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x130]
call fcn.00407bd0
push ebx
lea ecx, [ebp - 0x130]
call fcn.0041fd70
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.00402230
push 0xc
push esi
mov edx, str.error_n
call fcn.0044a160
add esp, 8
test al, al
je 0x4291e1
mov ebx, dword [ebp - 0x58]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x18], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
je 0x429070
mov ecx, str.close_n
mov ebx, 0xc
mov dword [ebp - 0x48], ecx
lea esp, [esp]
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42923f
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x48], ecx
sub ebx, dword [ebp - 0x30]
jne 0x429140
mov ecx, dword [ebp - 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x42917c
push ecx
call ebx
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x429186
push eax
call ebx
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x429190
push eax
call ebx
test edi, edi
je 0x429197
push edi
call ebx
mov eax, dword [ebp - 0x34]
cmp eax, 0xffffffff
je 0x4291a2
push eax
call ebx
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x4291ad
push eax
call ebx
cmp esi, 0xffffffff
je 0x4291b5
push esi
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4291c0
push eax
call ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x140]
mov ebx, eax
call fcn.00403750
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x8c], str.ui_file_downloader::operator___
mov byte [ebp - 4], 8
mov edx, str.failed_write_error_to_pipe__err
lea ecx, [ebp - 0x130]
call fcn.00407bd0
push ebx
lea ecx, [ebp - 0x130]
call fcn.0041fd70
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.00402230
jmp 0x42916c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x140]
mov ebx, eax
call fcn.00403750
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x8c], str.ui_file_downloader::operator___
mov byte [ebp - 4], 9
mov edx, str.failed_write_close_to_pipe__err
jmp 0x429214