Function at 0x41d850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550f88
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4be6
push 0x11f6
push 0x13ad7
sub esp, 0x1c
mov edi, ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
xor ebx, ebx
push 0x30
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x5837f0
mov byte [ecx], bl
call fcn.00404400
lea ecx, [ebp - 0x48]
call fcn.004075e0
add esp, 0x28
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x41d8c8
lea eax, [ebp - 0x48]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d902
mov dword [ebp - 4], eax
cmp dword [ebp - 0x34], 0x10
jb 0x41d8fb
mov eax, dword [ebp - 0x48]
push eax
call fcn.00425301
add esp, 4
xor eax, eax
jmp 0x41da52
cmp dword [ebp + 8], ebx
je 0x41d931
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 0x10
jb 0x41d927
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00425301
add esp, 4
mov eax, 1
jmp 0x41da52
push 0x4be6
push 0x11f6
push 0x13ad7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x40
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x583798
mov dword [ebp - 0x6c], ebx
mov byte [ecx], bl
call fcn.00404400
lea ecx, [ebp - 0x64]
call fcn.004075e0
add esp, 0x28
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
mov ecx, dword [ebp - 0x64]
jae 0x41d97e
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x68]
push edx
call fcn.00402780
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00403c50
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402960
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x41d9c4
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp - 0x70]
push ecx
inc edx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d9e1
mov dword [ebp - 0x6c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], edi
jb 0x41d9f9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00425301
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp ecx, ebx
je 0x41da1a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], edi
jb 0x41da2e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00425301
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], edi
jb 0x41da4f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00425301
add esp, 4
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret 4