Function at 0x41e6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd0b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x46ab5c]
xor eax, ebp
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
call fcn.004068d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004068d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41e76d
jmp 0x41e97e
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0xe4]
call fcn.0041e9e0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xe8], edx
cmp dword [ebp - 0xe8], 1
je 0x41e7ad
cmp dword [ebp - 0xe8], 2
je 0x41e85d
cmp dword [ebp - 0xe8], 3
je 0x41e905
jmp 0x41e94c
call fcn.004011d0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x2c]
call fcn.0040f280
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41e7d2
mov dword [ebp - 0xec], 0
jmp 0x41e833
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x41e7f7
mov dword [ebp - 0xf0], 0
jmp 0x41e827
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.0044c080
mov dword [ebp - 0xf4], esp
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 1
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.0041aca0
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ec00
lea ecx, [ebp - 0x28]
call fcn.0040f280
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.00406970
mov dword [ebp - 0x24], eax
jmp 0x41e94c
mov byte [ebp - 0x44], 0xef
mov byte [ebp - 0x43], 0xbb
mov byte [ebp - 0x42], 0xbf
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 3
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41e88e
cmp dword [ebp - 0x1c], 3
je 0x41e893
jmp 0x41e97e
call fcn.004011d0
mov dword [ebp - 0x4c], eax
push 0xfde9
lea ecx, [ebp - 0x2c]
call fcn.0040f280
push eax
lea ecx, [ebp - 0xdc]
call fcn.0041ee40
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xfc]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ec00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.0041acf0
lea ecx, [ebp - 0x28]
call fcn.0040f280
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.00406970
mov dword [ebp - 0x24], eax
jmp 0x41e94c
mov byte [ebp - 0x54], 0xff
mov byte [ebp - 0x53], 0xfe
push 0
lea edx, [ebp - 0x1c]
push edx
push 2
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41e932
cmp dword [ebp - 0x1c], 2
je 0x41e934
jmp 0x41e97e
lea ecx, [ebp - 0x2c]
call fcn.0040f280
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.00406970
shl eax, 1
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41e975
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
je 0x41e977
jmp 0x41e97e
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x41e98e
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401080
mov eax, dword [ebp - 0xe0]
lea esp, [ebp - 0x100]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x58]
xor ecx, ebp
call fcn.0044be2c
mov esp, ebp
pop ebp
ret 8