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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1088c
call fcn.0040c4a0
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.0040816e
test eax, eax
je 0x4086d4
push dword [ebp + 0x10]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.0040b09e
test eax, eax
je 0x4086c4
push str.PolicySecrets
push 0x20
mov eax, esi
push eax
call fcn.0040b103
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4086c4
mov ecx, esi
call fcn.0040b5a7
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edi
jbe 0x4086c4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.0040b6dc
test eax, eax
je 0x4086b1
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.0040b526
test eax, eax
je 0x4086b1
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.0040b354
test eax, eax
je 0x4086af
mov esi, dword [esp + 0x1c]
cmp esi, 0x20
jne 0x408601
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.00408002
test eax, eax
je 0x4086af
lea eax, [esp + 0x98]
mov dword [esp + 0x6c], eax
mov edi, dword [edi]
cmp edi, ebx
jae 0x4086af
add esi, 0x4c
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
lea edx, [esp + 0x6c]
jmp 0x40869f
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.00408120
test eax, eax
jne 0x4086af
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 0x408519
cmp dword [esp + 0xc], ebx
je 0x4086d4
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