Function at 0x417a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7661
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00410060
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
je 0x417e08
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00418620
add esp, 4
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004181a0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00408360
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0053c990
xorps xmm0, xmm0
lea edi, [esi + 0xac]
movq qword [ebp - 0x134], xmm0
mov ecx, edi
mov dword [ebp - 0x134], edi
mov byte [ebp - 0x130], 0
call fcn.00413d00
mov byte [ebp - 0x130], 1
push 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0053e870
mov eax, dword [ebp - 0x13c]
add esp, 0xc
test eax, eax
je 0x417b19
cmp eax, 1
jne 0x417b27
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0053cf00
add esp, 8
cmp byte [esi + 0xdc], 0
mov ecx, str.D:_A_OICI_GA___AU__A_OICI_GA___CO_
mov eax, str.D:_A_OICI_GA___SY__A_OICI_GA___CO_
cmove eax, ecx
lea ecx, [ebp - 0x84]
push eax
call fcn.0040b2a0
push 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
push 1
lea ecx, [ebp - 0x84]
call fcn.0040bfe0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x6c]
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0xc
movq qword [ebp - 0x128], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], eax
call fcn.00414c00
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 6
push eax
push 0x3e8
push 6
push 2
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.0040bfe0
push eax
call fcn.0053fb40
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x138], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x417bed
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
jne 0x417ca9
push 0x98
lea ecx, [ebp - 0x11c]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x11c]
call fcn.00416190
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421a70
mov esi, eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 9
push str.Failed_to_create_file
push eax
call fcn.00414ff0
add esp, 8
push esi
push eax
call fcn.0040e4e0
add esp, 8
push 0x6090a0
push eax
call fcn.00414ff0
add esp, 8
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x154]
call fcn.0040b3b0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00414da0
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xa
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x160]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push 0
push edx
push ecx
push eax
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417da1
push 0x98
lea ecx, [ebp - 0x11c]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x11c]
call fcn.00416190
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421a70
mov esi, eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0xc
push str.Failed_to_write_config_file__
push eax
call fcn.00414ff0
add esp, 8
push esi
push eax
call fcn.0040e4e0
add esp, 8
push str.___0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x154]
call fcn.0040b3b0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00414da0
push eax
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0xd
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x16c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
test esi, esi
je 0x417dac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0040b3b0
lea ecx, [ebp - 0x84]
call fcn.0040a7f0
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00413c60
lea ecx, [ebp - 0x54]
call fcn.0040a7f0
lea ecx, [ebp - 0x3c]
call fcn.0040a7f0
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x20], 0
je 0x417dfe
lea ecx, [ebp - 0x20]
call fcn.004084c0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040ba30
mov al, 1
jmp 0x417e0a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 4