Function at 0x4f1873
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afc2d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esi - 0x50]
push 5
pop ebx
call fcn.004ea145
push eax
call fcn.004ea57d
push dword [ebp + 0xc]
lea edi, [esi - 0x8c]
mov dword [esp + 0x20], eax
call fcn.004f1486
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x4f18e7
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x4c], eax
push eax
xor edi, edi
lea esi, [esp + 0x28]
mov dword [esp + 0x28], vtable.GFE::Windows::Event.0
call fcn.0048ad12
push 0x14
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x54], 1
call fcn.0055fda0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4f1936
mov esi, dword [eax]
jmp 0x4f1938
mov esi, eax
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx]
lea edi, [esp + 0x28]
push edi
push 0
sub ecx, eax
push ecx
add eax, esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f197e
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4f1964
push eax
call fcn.004a9a99
mov bl, 1
and dword [esi], 0
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0048ae45
mov al, bl
jmp 0x4f18d2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, 0x3e5
cmp eax, esi
je 0x4f19aa
push str.PushToDevice__WriteFile
push eax
mov eax, dword [esp + 0x1c]
push 0x1b
push dword [eax - 0x50]
call fcn.004e9b93
add esp, 0x10
xor bl, bl
jmp 0x4f1969
push dword [esp + 0x1c]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f19f8
cmp eax, 0x102
mov eax, dword [esp + 0x14]
push str.PushToDevice__WriteFile__WaitForSingleObject
je 0x4f19e9
push esi
push 0x1b
push dword [eax - 0x50]
call fcn.004e9b93
add esp, 0x10
push dword [ebx]
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x4f1a66
push 0x20
push dword [eax - 0x50]
call fcn.004e9b93
add esp, 0xc
jmp 0x4f19da
mov ebx, dword [ebx]
and dword [esp + 0x18], 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4f1a48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x1c]
cmp dword [esp + 0x18], eax
sete byte [esp + 0x13]
cmp byte [esp + 0x13], 0
jne 0x4f1a66
mov eax, dword [esp + 0x14]
push str.bytesWritten___MyDataLen
push 0
push 0x1b
push dword [eax - 0x50]
call fcn.004e9b93
jmp 0x4f1a63
call edi
push str.PushToDevice__WriteFile__GetOverlappedResult
push eax
mov eax, dword [esp + 0x1c]
push 0x1b
push dword [eax - 0x50]
call fcn.004e9b93
mov byte [esp + 0x23], 0
add esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4f1a75
push eax
call fcn.004a9a99
mov bl, byte [esp + 0x13]
jmp 0x4f1966