Function at 0x51761c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x51792c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040a760
mov eax, dword [ebp - 0x28]
mov edx, 0x517944
call fcn.00405b64
jne 0x5176a4
movzx eax, byte [ebp - 0x11]
mov byte [0x5608bd], al
mov eax, 0x5608c0
mov edx, 0x517944
call fcn.00405790
cmp byte [0x5608bc], 0
je 0x517904
mov bl, 1
jmp 0x517904
cmp byte [0x5608bc], 0
je 0x5176cf
movzx eax, byte [ebp - 0x11]
cmp al, byte [0x5608bd]
jne 0x5176cf
mov eax, dword [0x5608c0]
mov edx, dword [ebp - 4]
call fcn.00405b64
jne 0x5176cf
mov bl, 1
jmp 0x517904
call fcn.005168c4
test al, al
je 0x517904
xor eax, eax
push ebp
push 0x5178f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.005169fc
test al, al
jne 0x517700
call fcn.00405140
jmp 0x517904
lea eax, [ebp - 0x20]
push eax
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00516f40
test eax, eax
jge 0x51787d
cmp byte [ebp - 0x12], 0
je 0x517873
cmp byte [0x5608bc], 0
je 0x517831
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x51782a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42c3b0]
call fcn.0042c51c
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x11], 0
je 0x51777f
call fcn.004fd964
sub al, 2
jb 0x51777f
mov edx, 0x80000002
mov eax, dword [ebp - 0x24]
call fcn.0042c5f8
lea eax, [ebp - 0xc]
mov edx, 0x517954
call fcn.004057d4
jmp 0x517799
mov edx, 0x80000001
mov eax, dword [ebp - 0x24]
call fcn.0042c5f8
lea eax, [ebp - 0xc]
mov edx, 0x51796c
call fcn.004057d4
xor ecx, ecx
mov edx, 0x517980
mov eax, dword [ebp - 0x24]
call fcn.0042c660
test al, al
je 0x517810
lea eax, [ebp - 8]
call fcn.0040573c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0042cef8
test al, al
je 0x5177d1
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0042ccfc
cmp dword [ebp - 8], 0
je 0x517802
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004fe830
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004057d4
mov eax, dword [ebp - 8]
call fcn.0040ba30
test al, al
jne 0x517806
mov byte [ebp - 0x19], 0
jmp 0x517806
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x24]
call fcn.0042c5c8
jmp 0x517814
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51787d
mov eax, dword [ebp - 0x24]
call fcn.004047e0
ret
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
movzx eax, byte [ebp - 0x11]
call fcn.00516f30
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x5179cc
call fcn.0040c558
mov eax, dword [ebp - 0x10]
call fcn.005175a4
test al, al
jne 0x51787d
mov byte [ebp - 0x19], 0
jmp 0x51787d
call fcn.00405140
jmp 0x517904
cmp byte [0x5608bc], 0
je 0x51789e
movzx eax, byte [ebp - 0x11]
mov byte [0x5608bd], al
mov eax, 0x5608c0
mov edx, dword [ebp - 4]
call fcn.00405790
jmp 0x5178de
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
movzx eax, byte [ebp - 0x11]
call fcn.00516f30
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x5179ec
call fcn.0040c558
mov eax, dword [ebp - 0x10]
call fcn.005175a4
test al, al
jne 0x5178de
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517900
call fcn.00516938
mov eax, dword [ebp - 0x18]
call fcn.004047e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517933
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00405760
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405760
ret