Function at 0x416030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425c71
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x420]
push edx
call fcn.00415400
add esp, 8
mov dword [ebp - 0x844], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0xe]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0xc]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 6]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
mov ecx, 0x430960
call fcn.00411fd0
push eax
push 0x428b60
lea edx, [ebp - 0x218]
push edx
call fcn.004184a0
add esp, 0x2c
lea ecx, [ebp - 0x83c]
call fcn.00404930
mov dword [ebp - 4], 0
mov byte [ebp - 0x820], 0
push 0x3ff
push 0
lea eax, [ebp - 0x81f]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
push str.ExceptionCode0x_08x_r_n
push 0xffffffffffffffff
push 0x400
lea ecx, [ebp - 0x820]
push ecx
call fcn.004154f0
add esp, 0x14
push str.Exception:_r_n
lea ecx, [ebp - 0x83c]
call fcn.00408ad0
lea edx, [ebp - 0x820]
push edx
lea ecx, [ebp - 0x83c]
call fcn.00408ad0
push 0x428bc8
lea ecx, [ebp - 0x83c]
call fcn.00408ad0
push str.CallStack:_r_n
lea ecx, [ebp - 0x83c]
call fcn.00408ad0
mov eax, dword [0x430928]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0x86c]
push eax
call fcn.00415d80
add esp, 0xc
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x848]
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x84c]
push edx
lea ecx, [ebp - 0x83c]
call fcn.004045e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x86c]
call fcn.00404690
push 0x428bdc
lea ecx, [ebp - 0x83c]
call fcn.00408ad0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.00415580
add esp, 8
mov dword [ebp - 0x850], eax
mov ecx, dword [ebp - 0x850]
mov dword [ebp - 0x854], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x854]
push edx
lea ecx, [ebp - 0x83c]
call fcn.004045e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x884]
call fcn.00404690
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x824], 0
push 0
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x83c]
call fcn.00404280
push eax
lea ecx, [ebp - 0x83c]
call fcn.00404500
push eax
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x83c]
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423430
mov esp, ebp
pop ebp
ret