Function at 0x41f220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2750
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, eax
je 0x41f3f6
nop dword [eax]
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
cmp dword [eax + 0x1c], 0
jne 0x41f3e5
cmp dword [eax + 4], 0
jne 0x41f3e5
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0041cee0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x28]
lea ebx, [esi - 0x10]
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041f150
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 0xffffffff
jne 0x41f325
mov ecx, dword [ebp - 0x14]
or eax, eax
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
inc esi
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], 0x68
add edx, 0xfffffff0
mov dword [ebp - 0x10], esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f300
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41f3e9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f3e9
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x1c], 0
mov ebx, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
lea eax, [ebp - 0x1c]
push eax
sub esi, ebx
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f36d
nop word [eax + eax]
add ebx, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x1c]
je 0x41f3c7
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f350
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x20]
inc esi
mov dword [ecx + 0x1c], 0x67
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f3a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f3e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f3e9
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x41f387
inc esi
mov dword [ebp - 0x10], esi
jmp 0x41f387
inc esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edi, dword [edi]
cmp edi, dword [eax]
jne 0x41f260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4