Function at 0x4087c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1088c
call fcn.0040c8b0
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x78], bl
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
push dword [ebp + 0xc]
mov dword [esp + 0x2c], ebx
call fcn.004084b5
test eax, eax
je 0x408a18
push dword [ebp + 0x10]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.0040b4af
test eax, eax
je 0x408a08
push str.PolicySecrets
push 0x20
mov eax, esi
push eax
call fcn.0040b514
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x408a08
mov ecx, esi
call fcn.0040b9b8
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edi
jbe 0x408a08
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.0040baed
test eax, eax
je 0x4089f5
push 0x7fe
lea eax, [esp + 0x9e]
push ebx
push eax
mov word [esp + 0xa4], bx
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x9c]
mov ecx, esi
call fcn.0040b937
test eax, eax
je 0x4089f5
mov word [esp + 0x38], bx
xor eax, eax
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
push 0x40d3d0
stosd dword es:[edi], eax
push str.CurrVal
push dword [esp + 0x20]
stosd dword es:[edi], eax
mov eax, esi
push eax
lea ebx, [esp + 0x48]
call fcn.0040b765
test eax, eax
je 0x4089f3
mov esi, dword [esp + 0x1c]
cmp esi, 0x20
jne 0x408945
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
add ebx, 0xffffffc4
push ebx
lea edi, [esi + 0x3c]
push edi
lea eax, [esi + 0x1c]
push eax
push 0x20
lea eax, [esp + 0x88]
push eax
call fcn.00408349
test eax, eax
je 0x4089f3
lea eax, [esp + 0x98]
mov dword [esp + 0x6c], eax
mov edi, dword [edi]
cmp edi, ebx
jae 0x4089f3
add esi, 0x4c
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
lea edx, [esp + 0x6c]
jmp 0x4089e3
push 0xffff
lea eax, [esp + 0x89d]
push 0
push eax
mov byte [esp + 0x8a4], 0
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x50]
add eax, 0xc
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff4
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8a4]
mov dword [esp + 0x38], eax
mov eax, 0x10000
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.00408467
test eax, eax
jne 0x4089f3
lea eax, [esp + 0x98]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], eax
lea edx, [esp + 0x60]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edx
call dword [eax]
mov dword [esp + 0x14], 1
xor ebx, ebx
mov edi, dword [esp + 0x20]
inc edi
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
jb 0x40885d
cmp dword [esp + 0xc], ebx
je 0x408a18
push dword [esp + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc