Function at 0x402aa0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416718
push 0x407eec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffba0
mov eax, dword [0x41b2c0]
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
mov dword [ebp - 0x12c], 0x104
mov dword [ebp - 0x458], 0x104
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x45c], 0
push 0x400
push 0
push 0x41bc40
call fcn.00407c90
add esp, 0xc
push str.Errorlogs
push 0x41bc40
call fcn.00407700
add esp, 8
push 0
lea eax, [ebp - 0x460]
push eax
push 0x41bc40
call fcn.00407800
add esp, 4
push eax
push 0x41bc40
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x460]
push edx
push 2
push 0x416004
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x41bc40
call fcn.00407800
add esp, 4
push eax
push 0x2d
push 0x41bc40
call fcn.00407900
add esp, 0xc
push 0
lea ecx, [ebp - 0x460]
push ecx
push 0x41bc40
call fcn.00407800
add esp, 4
push eax
push 0x41bc40
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x460]
push eax
push 2
push 0x416008
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x134]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
push SQLCancel
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402bf5
push 0x41600c
push 0x41b080
call fcn.00407930
add esp, 8
xor eax, eax
jmp 0x402e44
mov dword [ebp - 4], 0
cmp dword [ebp - 0x464], 0
jne 0x402d4c
mov dword [ebp - 0x458], 0x100
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x402c76
push 0x416030
push 0x41b080
call fcn.00407930
add esp, 8
mov dword [ebp - 0x46c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00407e36
add esp, 8
mov eax, dword [ebp - 0x46c]
jmp 0x402e44
mov dword [ebp - 0x12c], 0x418
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402ce1
push str._Unable_to_locate_errorlogs__n
push 0x41b080
call fcn.00407930
add esp, 8
mov dword [ebp - 0x470], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00407e36
add esp, 8
mov eax, dword [ebp - 0x470]
jmp 0x402e44
mov byte [ebp - 0x34d], 0
push 2
lea eax, [ebp - 0x450]
push eax
push 0x416078
call fcn.00407c50
add esp, 0xc
test eax, eax
jne 0x402d38
mov ecx, dword [ebp - 0x12c]
sub ecx, 2
mov dword [ebp - 0x454], ecx
mov edx, dword [ebp - 0x454]
push edx
lea eax, [ebp - 0x44e]
push eax
lea ecx, [ebp - 0x348]
push ecx
call fcn.00407b20
add esp, 0xc
mov dword [ebp - 0x464], 1
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
jmp 0x402bfc
lea eax, [ebp - 0x348]
push eax
push 0x41607c
call fcn.00407cf5
add esp, 8
push 1
lea ecx, [ebp - 0x348]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402600
add esp, 0xc
mov dword [ebp - 0x130], 1
jmp 0x402d90
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 6
ja 0x402e23
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.00407700
add esp, 8
push 0xa
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.004080c8
add esp, 0xc
push 0x416090
lea edx, [ebp - 0x128]
push edx
call fcn.00407710
add esp, 8
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.00407710
add esp, 8
lea edx, [ebp - 0x128]
push edx
push str.Getting_file__s_n
call fcn.00407cf5
add esp, 8
push 1
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402600
add esp, 0xc
jmp 0x402d81
mov dword [ebp - 4], 0xffffffff
call fcn.00402e31
jmp 0x402e3f
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00407d96
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret