Function at 0x42da40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aaab
mov eax, dword fs:[0]
push eax
mov eax, 0x192b0
call fcn.004765d0
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x192ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x192c4]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x192cc], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0044e280
mov byte [esp + 0x192cc], 2
call fcn.00427490
cmp eax, ebx
je 0x42db32
push str._CopyFileFromWM_hRapiResult___S_OK
call fcn.00403170
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x192cc], 1
call fcn.0044de60
mov eax, dword [esp + 0x192d4]
add eax, 0xfffffff0
mov byte [esp + 0x192cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dafa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x192d8]
add eax, 0xfffffff0
mov dword [esp + 0x192cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42db28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42dd70
mov edx, dword [esp + 0x192d4]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [esp + 0x3c]
cmp eax, 0xffffffff
jne 0x42dbd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42db63
and eax, 0xffff
or eax, 0x80070000
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x192cc], 1
call fcn.0044de60
mov eax, dword [esp + 0x192d4]
add eax, 0xfffffff0
mov byte [esp + 0x192cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x192d8]
add eax, 0xfffffff0
mov dword [esp + 0x192cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dbce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42dd70
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0xac]
xor ecx, ecx
cmp ecx, ebx
ja 0x42dbf8
cmp eax, ebx
jbe 0x42dcfc
mov ecx, dword [esp + 0x192d4]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [esp + 0x44]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42dc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x42dc2e
mov dword [esp + 0x14], eax
jmp 0x42dcfc
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x14], eax
jmp 0x42dcfc
mov edx, dword [esp + 0x192d8]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42dc89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x42dc79
mov dword [esp + 0x14], eax
jmp 0x42dcf7
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x14], eax
jmp 0x42dcf7
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x19000
lea ecx, [esp + 0x2cc]
push ecx
push ebp
call dword [esp + 0x50]
test eax, eax
je 0x42dcd8
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x2cc]
push ecx
push esi
call edi
test eax, eax
je 0x42dcce
cmp dword [esp + 0x18], ebx
jne 0x42dc90
jmp 0x42dcf0
mov dword [esp + 0x14], 1
jmp 0x42dcf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42dcec
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [esp + 0x34]
call dword [esp + 0x8c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x192cc], 1
call fcn.0044de60
mov eax, dword [esp + 0x192d4]
add eax, 0xfffffff0
mov byte [esp + 0x192cc], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dd3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x192d8]
add eax, 0xfffffff0
mov dword [esp + 0x192cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dd6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x192c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x192ac]
xor ecx, esp
call fcn.004764f6
add esp, 0x192bc
ret