Function at 0x410930
Capabilities:
Access peb ldr_data
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
mov esi, dword [0x458d10]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x410983
test esi, esi
je 0x4109a8
cmp dword [eax + 0x18], esi
je 0x4109a8
mov eax, dword [eax]
cmp eax, ecx
jne 0x410974
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
or ebx, 0xffffffff
test esi, esi
jne 0x4109f4
xor edi, edi
mov dword [ebp - 0x2c], edi
jmp 0x410a12
test eax, eax
je 0x410983
movzx ecx, word [eax + 0x24]
test cx, cx
jne 0x4109be
call fcn.00412ea0
mov esi, eax
jmp 0x410985
mov edx, dword [0x458d34]
mov edi, ecx
mov ebx, dword [eax + 0x28]
lea ecx, [edi + 0xa]
call fcn.00412330
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov word [eax + edi], cx
test ebx, ebx
je 0x410985
push edi
push ebx
push dword [esi + 4]
call fcn.0042ea70
add esp, 0xc
jmp 0x410985
mov ecx, esi
call fcn.0041c4b0
mov edi, eax
lea ecx, [esi - 8]
mov dword [ebp - 0x2c], edi
mov edx, ebx
lock xadd dword [ecx + 4], edx
dec edx
jne 0x410a12
call fcn.00412410
mov esi, dword [edi]
add esi, dword [0x4578c0]
mov edx, dword [0x458d34]
lea ecx, [esi + 0xa]
call fcn.00412330
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi], esi
mov dword [edi + 4], eax
mov word [eax + esi], cx
mov esi, dword [ebp - 0x2c]
push dword [esi]
push dword [esi + 4]
push dword [edi + 4]
call fcn.0042ea70
mov eax, dword [edi + 4]
add esp, 0xc
add eax, dword [esi]
push dword [0x4578c0]
push dword [0x4578c4]
push eax
call fcn.0042ea70
add esp, 0xc
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x410a77
call fcn.00412410
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x410a8c
mov dword [0x45893c], edi
jmp 0x410aa4
lea ecx, [edi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x410a9e
call fcn.00412410
mov edi, dword [0x45893c]
test edi, edi
jne 0x410ac2
mov ecx, 0x457908
call fcn.004198c0
mov edi, eax
mov dword [0x45893c], edi
test edi, edi
je 0x410b90
mov ecx, dword [edi + 4]
call fcn.00415d50
cmp eax, 0xc0000102
jne 0x410b90
push str.If_you_select_No__the_settings_system_will_not_function_properly.
push str.PE_Views_settings_file_is_corrupt._Do_you_want_to_reset_it_
push 0xffff
push 6
push 0
call fcn.00418f10
add esp, 0x14
cmp eax, 6
jne 0x410b70
mov eax, dword [str._settings___settings_]
lea ecx, [ebp - 0x30]
mov edx, dword [0x45893c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x451f20]
mov dword [ebp - 0x18], eax
mov eax, dword [0x451f24]
mov edx, dword [edx + 4]
push 0x60
mov dword [ebp - 0x14], eax
mov eax, dword [0x451f28]
push 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x451f2c]
push 5
mov dword [ebp - 0xc], eax
mov ax, word [0x451f30]
push 0
push 0x120116
mov word [ebp - 8], ax
call fcn.0041cb30
test eax, eax
js 0x410b90
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0x15
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x410b90
mov ecx, dword [0x45893c]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x410b86
call fcn.00412410
mov dword [0x45893c], 0
mov ecx, 5
mov ebx, 0x4588f8
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x410bab
mov ecx, ebx
call fcn.004275c0
mov ecx, dword [0x458d2c]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x16
mov dword [ebp - 0x44], str.MaxSizeUnit
call fcn.00414030
mov esi, eax
test esi, esi
je 0x410bd7
cmp dword [esi], 1
jne 0x410bd7
mov edi, dword [esi + 0x14]
jmp 0x410bdc
mov edi, dword [ebp - 0x28]
xor esi, esi
xor edx, edx
mov eax, 5
lock cmpxchg dword [ebx], edx
cmp eax, 5
je 0x410bf3
mov ecx, ebx
call fcn.00427710
test esi, esi
jne 0x410c02
push 0xc0000225
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [ebp - 4]
mov dword [0x4577b0], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042d1c6
mov esp, ebp
pop ebp
ret