Function at 0x417f87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4410a7
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x459624]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x459624]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x24], edi
lea eax, [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x110], ebx
push eax
mov dword [esp + 0x48], vtable.settings_impl::PlainTextEntrySerializer.0
call fcn.00402148
mov byte [esp + 0x110], 1
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x4c]
mov eax, dword [ecx + 0xc]
push ebx
push eax
mov dword [ecx + 0x10], 6
call fcn.0040143d
mov dword [esp + 0x110], 2
mov ecx, dword [esi + 4]
lea eax, [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], 1
call fcn.0041de01
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x48]
call fcn.00417bb2
mov ecx, edi
mov byte [esp + 0x110], 3
call fcn.0041b7d0
cmp dword [esp + 0xf4], ebx
jne 0x418076
mov esi, 0x447dcc
push esi
call fcn.00427290
pop ecx
push eax
push esi
lea ecx, [esp + 0xec]
call fcn.00402f4d
mov ecx, edi
lea esi, [esp + 0x1c]
call fcn.0041b74c
mov cl, byte [eax + 4]
mov esi, dword [eax]
mov byte [esp + 0x14], cl
mov byte [eax + 4], bl
mov dword [esp + 0x2c], esi
mov byte [esp + 0x30], cl
mov byte [esp + 0x110], 4
cmp byte [esp + 0x20], bl
je 0x4180b1
push dword [esp + 0x1c]
mov byte [esp + 0x24], bl
call fcn.004243b3
pop ecx
lea eax, [esp + 0x24]
cmp esi, ebx
jne 0x418169
push edi
call fcn.0041b70c
mov esi, dword [eax]
pop ecx
mov cl, byte [eax + 4]
mov byte [esp + 0x18], cl
mov byte [eax + 4], bl
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], cl
mov byte [esp + 0x110], 5
cmp byte [esp + 0x28], bl
je 0x4180f4
push dword [esp + 0x24]
mov byte [esp + 0x2c], bl
call fcn.004243c0
pop ecx
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x41810c
lea eax, [esp + 0xe4]
push 0x132
push dword [esp + 0xf8]
push dword [esp + 0xfc]
push eax
push esi
call fcn.0042959c
add esp, 0xc
call fcn.00419738
pop ecx
pop ecx
cmp byte [esp + 0x18], bl
je 0x41813d
push esi
call fcn.004243c0
pop ecx
cmp byte [esp + 0x14], bl
je 0x41814a
push ebx
call fcn.004243b3
pop ecx
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.00402a69
mov dword [esp + 0x110], 6
jmp 0x418228
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.0041b78e
mov cl, byte [eax + 4]
mov esi, dword [eax]
mov byte [esp + 0x14], cl
mov byte [eax + 4], bl
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], cl
mov byte [esp + 0x110], 7
cmp byte [esp + 0x28], bl
je 0x4181a6
push dword [esp + 0x24]
mov byte [esp + 0x2c], bl
call fcn.004243b3
pop ecx
cmp dword [esp + 0xf8], 0x10
mov eax, dword [esp + 0xe4]
jae 0x4181be
lea eax, [esp + 0xe4]
push esi
push 1
push dword [esp + 0xfc]
push eax
call fcn.00428360
add esp, 0x10
cmp eax, 1
je 0x4181f1
push 0x132
lea esi, [esp + 0x38]
call fcn.004162fc
push 0x4509f4
mov eax, esi
push eax
call fcn.0042b9e4
cmp byte [esp + 0x14], bl
je 0x4181fe
push esi
call fcn.004243b3
pop ecx
cmp byte [esp + 0x30], bl
je 0x41820e
push dword [esp + 0x2c]
call fcn.004243b3
pop ecx
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.00402a69
mov dword [esp + 0x110], 8
lea eax, [esp + 0x4c]
call fcn.004015ae
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00425441
mov esp, ebp
pop ebp
ret