Function at 0x40e4ae
Capabilities:
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
sub esp, 0x45c
lea ebp, [esp - 4]
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push 0x30
mov eax, 0x4419d2
call fcn.0042baa9
mov edi, dword [ebp + 0x468]
mov esi, 0x103
push esi
lea eax, [ebp + 0x255]
push 0
push eax
mov byte [ebp + 0x254], 0
call fcn.0042bc20
add esp, 0xc
lea ebx, [esi + 1]
push ebx
lea eax, [ebp + 0x254]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x10]
push 0x44575c
push eax
call fcn.00408331
pop ecx
pop ecx
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00402dff
push eax
lea eax, [ebp + 0x254]
push eax
call fcn.00416cb3
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012b7
push esi
lea eax, [ebp + 0x359]
push 0
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x3c], ebx
mov byte [ebp + 0x358], 0
call fcn.0042bc20
lea eax, [ebp - 0x14]
push 0x44574c
push eax
call fcn.00408331
mov ebx, eax
lea eax, [ebp - 0x10]
push 0x445054
push eax
mov dword [ebp - 4], 1
call fcn.00408331
mov ebx, dword [ebx]
mov eax, dword [eax]
add esp, 0x1c
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp + 0x358]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004012b7
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
test bl, bl
je 0x40e642
lea eax, [ebp + 0x358]
push eax
call fcn.0042b470
pop ecx
test eax, eax
jbe 0x40e62c
lea eax, [ebp + 0x358]
push eax
call fcn.0042b470
pop ecx
cmp eax, esi
jbe 0x40e603
mov eax, esi
jmp 0x40e610
lea eax, [ebp + 0x358]
push eax
call fcn.0042b470
pop ecx
push eax
lea eax, [ebp + 0x358]
push eax
push edi
call fcn.0042c9b0
push edi
call fcn.0040a80c
add esp, 0x10
jmp 0x40e748
push 0x104
xor esi, esi
push esi
push edi
call fcn.0042bc20
add esp, 0xc
jmp 0x40e74a
push 0
push 0x80
push 3
push 0
push 1
push 1
lea eax, [ebp + 0x254]
push eax
call dword [0x4c6488]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x40e748
xor ebx, ebx
push 0x1f3
lea eax, [ebp + 0x61]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x60], bl
call fcn.0042bc20
add esp, 0xc
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x1f4
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e73f
cmp dword [ebp - 0x14], ebx
jbe 0x40e73f
push dword [ebp - 0x18]
call dword [0x4c648c]
lea eax, [ebp + 0x60]
push eax
call fcn.0042b470
pop ecx
cmp eax, esi
jbe 0x40e6c7
mov eax, esi
jmp 0x40e6d1
lea eax, [ebp + 0x60]
push eax
call fcn.0042b470
pop ecx
push eax
lea eax, [ebp + 0x60]
push eax
push edi
call fcn.0042c9b0
push edi
call fcn.0040a80c
lea eax, [ebp - 0x24]
push 0x44574c
push eax
call fcn.00408331
mov esi, eax
lea eax, [ebp - 0x10]
push 0x445054
push eax
mov dword [ebp - 4], 2
call fcn.00408331
mov esi, dword [esi]
mov ebx, dword [eax]
push edi
call fcn.0042b470
add esp, 0x24
push eax
push edi
push 1
push esi
push ebx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
push dword [ebp - 0x18]
call dword [0x4c648c]
xor esi, esi
push edi
call fcn.0042b470
pop ecx
test eax, eax
jne 0x40ea34
mov dword [ebp - 0x14], esi
inc dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.004195c8
mov dword [ebp - 4], 3
call fcn.0041cc47
push eax
lea ecx, [ebp - 0x18]
call fcn.00401633
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00418a7e
lea eax, [ebp - 0x24]
mov dword [esp], 0x44571c
push eax
mov byte [ebp - 4], 5
call fcn.00408331
mov eax, dword [eax]
push 0x3a
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.004034f6
mov ecx, dword [ebp - 0x24]
add esp, 0x14
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.004012b7
lea eax, [ebp - 0x20]
push 0x445700
push eax
call fcn.00408331
pop ecx
pop ecx
mov ebx, eax
mov byte [ebp - 4], 7
call fcn.0041cc47
push eax
lea ecx, [ebp - 0x10]
call fcn.00401633
push str.http:__
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.0040e386
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.0040e32f
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040e32f
add esp, 0x24
push dword [eax]
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0xb
call fcn.00401f30
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004012b7
push esi
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x5c], 0xf
call fcn.00401748
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4c6f78
mov byte [ebp - 4], 0x12
call fcn.00401f30
lea ecx, [ebp]
call fcn.0041a296
test al, al
je 0x40e8c2
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x40e8aa
lea eax, [ebp + 0x48]
push dword [ebp + 0x58]
push eax
push edi
call fcn.0042c9b0
push edi
call fcn.0042b470
add esp, 0x10
cmp eax, 1
ja 0x40e909
push esi
push 1
lea ecx, [ebp + 0x44]
call fcn.004017f7
push esi
push 1
lea ecx, [ebp + 0x28]
call fcn.004017f7
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004012b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004191a6
cmp dword [ebp - 0x14], 5
jl 0x40e75c
jmp 0x40ea34
push edi
call fcn.0040a80c
pop ecx
cmp eax, 1
je 0x40e960
mov ebx, 0x104
push ebx
push esi
push edi
call fcn.0042bc20
add esp, 0xc
call dword [0x4c642c]
push eax
call dword [0x4c642c]
push eax
push str._lu_lu
push ebx
push edi
call fcn.0042dc4b
push 0xf6
lea eax, [edi + 0xd]
push esi
push eax
call fcn.0042bc20
add esp, 0x20
mov byte [edi], 0x37
mov byte [edi + 1], 0x37
mov byte [edi + 2], 0x37
mov byte [edi + 3], 0x37
lea eax, [ebp - 0x1c]
push 0x44574c
push eax
call fcn.00408331
mov ebx, eax
lea eax, [ebp - 0x28]
push 0x445054
push eax
mov byte [ebp - 4], 0x13
call fcn.00408331
mov eax, dword [eax]
mov ebx, dword [ebx]
push edi
mov dword [ebp - 0x20], eax
call fcn.0042b470
add esp, 0x14
push eax
push edi
push 1
push ebx
push dword [ebp - 0x20]
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.004012b7
push esi
push 0x80
push 2
push esi
push 2
push 4
lea eax, [ebp + 0x254]
push eax
call dword [0x4c6488]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e9fc
push esi
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0042b470
pop ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [0x4c648c]
push esi
push 1
lea ecx, [ebp + 0x44]
call fcn.004017f7
push esi
push 1
lea ecx, [ebp + 0x28]
call fcn.004017f7
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004012b7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004012b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004191a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.0042ba9a
add ebp, 0x460
leave
ret