Function at 0x422802
Capabilities:
Write file on windows

Disassembly:
push 0x1fc
mov eax, 0x4cf62c
call fcn.0044daf4
mov ebx, ecx
mov dword [ebp - 0xb0], ebx
lea esi, [ebx + 0x68]
mov dword [ebp - 0xc0], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
push str.Writing_config...
push 3
pop ecx
call fcn.0042181f
pop ecx
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 1
cmp dword [ebx + 0xec], edi
jne 0x42285a
or dword [ebp - 4], 0xffffffff
push dword [esi]
jmp 0x422e3d
lea eax, [ebx + 0xdc]
cmp dword [eax + 0x14], 8
jb 0x422868
mov eax, dword [eax]
push 0x4de2f8
push eax
call fcn.00446e9a
pop ecx
pop ecx
mov dword [ebp - 0xa4], eax
cmp eax, edi
je 0x42284f
mov dword [ebp - 0xc8], 0xfeff
push eax
push 1
push 2
lea eax, [ebp - 0xc8]
push eax
call fcn.00448990
add esp, 0x10
cmp eax, 1
je 0x4228e1
mov dword [ebp - 0xb0], str.Config_write_error
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00447350
mov byte [ebp - 4], 3
mov dword [ebp - 0xd4], vtable.std::runtime_error.0
mov byte [ebp - 4], 1
push 0x4ee2a8
lea eax, [ebp - 0xd4]
push eax
call fcn.0044d625
lea eax, [ebp - 0x170]
push eax
call fcn.00404d9c
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
push 0x3c
lea eax, [ebp - 0x170]
push eax
call fcn.00406229
lea ecx, [ebx + 0xc0]
lea eax, [ebp - 0x170]
push eax
call fcn.004060a0
add esp, 0xc
push 0x3e
lea eax, [ebp - 0x170]
push eax
call fcn.00406229
push 0x4e6470
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
add esp, 0x10
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x170]
call fcn.00404d5e
mov byte [ebp - 4], 6
lea eax, [ebp - 0x68]
push eax
lea esi, [ebp - 0x30]
call fcn.00401874
mov byte [ebp - 4], 8
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.00401198
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x120]
call fcn.00404e06
lea eax, [ebp - 0x120]
mov dword [ebp - 0xa8], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 9
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00445c6f
pop ecx
push dword [ebp - 0xa4]
lea eax, [ebp - 0x30]
call fcn.004227b6
mov dword [ebp - 0xac], 0x4e64c8
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cdq
push 0x1c
pop ecx
idiv ecx
mov dword [ebp - 0xc4], eax
and dword [ebp - 0xb4], edi
mov edi, dword [ebp - 0xb4]
cmp edi, dword [ebp - 0xc4]
jge 0x422cf2
mov esi, edi
shl esi, 2
mov dword [ebp - 0xb8], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + eax]
push str.GROUP
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
call fcn.00448f6f
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebx + 0x10]
jne 0x422ca8
mov esi, dword [esi + eax]
cmp dword [esi + 0x18], 8
jb 0x422a27
mov esi, dword [esi + 4]
jmp 0x422a2a
add esi, 4
lea eax, [ebp - 0x208]
push eax
call fcn.00404d9c
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
push dword [ebp - 0xac]
lea eax, [ebp - 0x208]
push eax
call fcn.00405e4c
push 0x3c
lea eax, [ebp - 0x208]
push eax
call fcn.00406229
push esi
lea eax, [ebp - 0x208]
push eax
call fcn.00405e4c
push 0x3e
lea eax, [ebp - 0x208]
push eax
call fcn.00406229
push 0x4e6470
lea eax, [ebp - 0x208]
push eax
call fcn.00405e4c
add esp, 0x28
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x208]
call fcn.00404d5e
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.00405528
mov byte [ebp - 4], 0xd
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.00401198
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1b8]
call fcn.00404e06
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 9
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00445c6f
pop ecx
push dword [ebp - 0xa4]
lea eax, [ebp - 0x30]
call fcn.004227b6
mov dword [ebp - 0xac], 0x4e64cc
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xb8]
mov esi, dword [ecx + eax]
mov dword [ebp - 0xa8], esi
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
cdq
push 0x1c
pop ecx
idiv ecx
mov dword [ebp - 0xb8], eax
and dword [ebp - 0xbc], edi
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [ebp - 0xb8]
jge 0x422b9f
mov eax, dword [esi + 0x30]
mov edx, dword [eax + ecx*4]
imul ecx, ecx, 0x1c
add ecx, dword [esi + 0x20]
push dword [ebp - 0xac]
lea ebx, [ebp - 0x84]
call fcn.00422522
mov byte [ebp - 4], 0x11
push dword [ebp - 0xa4]
call fcn.004227b6
mov byte [ebp - 4], 9
push 1
xor edi, edi
mov esi, ebx
call fcn.00401198
inc dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xa8]
jmp 0x422b42
mov esi, 0x4e64c8
mov dword [ebp - 0xac], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x18], 8
jb 0x422bc1
mov edi, dword [eax + 4]
jmp 0x422bc4
lea edi, [eax + 4]
lea eax, [ebp - 0x170]
push eax
call fcn.00404d9c
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
push esi
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
push 0x4e6468
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
push edi
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
push 0x3e
lea eax, [ebp - 0x170]
push eax
call fcn.00406229
push 0x4e6470
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
add esp, 0x28
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x170]
call fcn.00404d5e
mov byte [ebp - 4], 0x14
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x30]
call fcn.00405528
mov byte [ebp - 4], 0x13
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00401198
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x120]
call fcn.00404e06
lea eax, [ebp - 0x120]
mov dword [ebp - 0xa8], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 9
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00445c6f
pop ecx
push dword [ebp - 0xa4]
lea eax, [ebp - 0x30]
call fcn.004227b6
jmp 0x422ce7
mov edx, dword [esi + eax]
mov ecx, edi
imul ecx, ecx, 0x1c
add ecx, dword [ebx]
push dword [ebp - 0xac]
lea ebx, [ebp - 0xa0]
call fcn.00422522
mov byte [ebp - 4], 0x17
push dword [ebp - 0xa4]
call fcn.004227b6
mov byte [ebp - 4], 9
push 1
xor edi, edi
mov esi, ebx
call fcn.00401198
mov ebx, dword [ebp - 0xb0]
inc dword [ebp - 0xb4]
jmp 0x4229d9
lea eax, [ebp - 0x170]
push eax
call fcn.00404d9c
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x19
push 0x4e6468
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
lea ecx, [ebx + 0xc0]
lea eax, [ebp - 0x170]
push eax
call fcn.004060a0
add esp, 0xc
push 0x3e
lea eax, [ebp - 0x170]
push eax
call fcn.00406229
push 0x4e6470
lea eax, [ebp - 0x170]
push eax
call fcn.00405e4c
add esp, 0x10
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x170]
call fcn.00404d5e
mov byte [ebp - 4], 0x1a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x30]
call fcn.00405528
mov byte [ebp - 4], 0x19
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00401198
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x120]
call fcn.00404e06
lea eax, [ebp - 0x120]
mov dword [ebp - 0xa8], eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 9
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00445c6f
pop ecx
push dword [ebp - 0xa4]
lea eax, [ebp - 0x30]
call fcn.004227b6
push dword [ebp - 0xa4]
call fcn.0044707c
pop ecx
mov byte [ebp - 4], 1
push 1
lea esi, [ebp - 0x30]
call fcn.00401198
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x422e45
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.0044db50
ret