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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x620d30
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
xor edi, edi
cmp esi, edi
je 0x5246dd
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x7c]
push 0x20019
push esi
push eax
mov dword [esp + 0x78], edi
call fcn.00523f20
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x5243ab
lea ecx, [esp + 0x10]
call fcn.00523f00
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
push ecx
push str.data_size
push edi
push eax
call fcn.00524800
add esp, 0x10
test al, al
jne 0x5243e5
lea ecx, [esp + 0x10]
call fcn.00523f00
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
cmp dword [esp + 0x28], edi
jne 0x5243f9
lea ecx, [esp + 0x10]
call fcn.00523f00
jmp 0x524724
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x54], edx
mov ebx, 0x10
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x60], edx
mov eax, dword [0x6abf00]
mov dword [esp + 0x1c], eax
mov eax, ebp
lea ecx, [esp + 0x1c]
shr eax, 7
push eax
push str.block_0x_08lX
push ecx
mov byte [esp + 0x78], 2
call fcn.005d59a6
add esp, 0xc
lea ecx, [esp + 0x14]
push esi
call fcn.005dd21e
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 3
call fcn.005dd567
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.005dd57c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x38]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, ecx
test esi, esi
mov dword [esp + 0x3c], esi
je 0x5245ca
mov eax, dword [0x6abf00]
mov dword [esp + 0x20], eax
mov eax, ebp
lea ecx, [esp + 0x20]
push eax
push str.data_0x_08lX
push ecx
mov byte [esp + 0x78], 5
inc ebp
call fcn.005d59a6
mov eax, dword [esp + 0x34]
add esp, 0xc
sub eax, edi
cmp eax, 0x10
jae 0x5244d3
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push ebx
push edx
push eax
push 0
push esi
call fcn.005248a0
add esp, 0x14
test al, al
je 0x5245b1
add edi, ebx
mov dword [esp + 0x34], edi
lea edi, [esp + 0x40]
test ebx, ebx
jbe 0x524552
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], ebx
mov edx, dword [esp + eax*4 + 0x54]
lea ecx, [esp + eax*4 + 0x54]
xor eax, eax
mov al, byte [edi]
shl edx, 4
add edx, eax
mov eax, edx
mov dword [ecx], edx
and eax, 0xf0000000
je 0x524532
mov ebx, eax
shr ebx, 0x18
xor ebx, edx
xor ebx, eax
mov dword [ecx], ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
inc eax
cmp eax, 4
mov dword [esp + 0x50], eax
jb 0x524546
xor eax, eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x30]
inc edi
dec ecx
mov dword [esp + 0x30], ecx
jne 0x524507
mov edi, dword [esp + 0x74]
lea eax, [esp + 0x40]
push ebx
push eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
cmp ecx, eax
mov byte [esp + 0x6c], 4
lea ecx, [esp + 0x20]
je 0x52460e
call fcn.005dd1b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.005dd1b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
call fcn.005dd1b0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x78]
jmp 0x52441a
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 4
call fcn.005dd1b0
test esi, esi
je 0x5245ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.005dd1b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
call fcn.005dd1b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5246dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
call fcn.005dd1b0
test esi, esi
je 0x524622
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebx
jmp 0x524628
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.005dd1b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
call fcn.005dd1b0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x50]
push edx
call fcn.00524250
mov eax, dword [0x6abf00]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x6c], 7
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
lea esi, [eax + 1]
push esi
call fcn.005dd594
mov edx, dword [esp + 0x10]
push esi
push eax
push str.data_integrity
push 0
push edx
call fcn.00524740
add esp, 0x14
lea ecx, [esp + 0x18]
test al, al
push 0xffffffffffffffff
jne 0x52469b
call fcn.005dd5e3
jmp 0x5246b6
call fcn.005dd5e3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00510843
add esp, 8
test eax, eax
je 0x5246f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call fcn.005dd1b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 1
call fcn.005dd1b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5246dd
push eax
call ebx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov edx, dword [edi]
push 0
push 0
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call fcn.005dd1b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 1
call fcn.005dd1b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x524724
push eax
call ebx
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret