Function at 0x503220
Capabilities:
Delete registry value
Get file size
Move file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1c], edi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x5045e1
mov eax, dword [eax + 0x38]
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00507640
push 0x667d30
mov ecx, edi
call fcn.00502040
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp eax, esi
je 0x503297
push esi
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x5032b3
mov ecx, dword [edi + 0x10]
push ecx
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x5c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x5c], esi
push eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x58], si
call fcn.00401fc0
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x5037bd
push ebx
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x5037bd
cmp dword [edi], esi
je 0x5037bd
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x503302
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00580edc
add esp, 8
test eax, eax
je 0x5037bd
push 1
push ebx
call fcn.0046df00
add esp, 8
cmp eax, esi
je 0x50335c
push ebx
lea ecx, [ebp - 0x34]
call fcn.0059adfd
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
push 0x667d1c
push ecx
mov byte [ebp - 4], 3
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00502040
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0059ad3d
cmp dword [ebp + 8], esi
jbe 0x50350a
cmp dword [0x6526c0], esi
je 0x503384
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x5033c8
push ebx
lea ecx, [ebp - 0x28]
call fcn.0059adfd
mov eax, dword [ebp - 0x28]
push 0x3f
push eax
call fcn.0057e940
add esp, 8
test eax, eax
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
jne 0x5033b7
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x5033be
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0059ad3d
cmp esi, 0xffffffff
jne 0x5033fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [ebp - 0x18]
push esi
push 0x667ce4
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00502040
mov ecx, dword [0x67b0f0]
push ecx
jmp 0x503bb2
push 0
push 0
lea edx, [ebp - 0x24]
push 0
push edx
push ebx
call fcn.0057f69a
mov eax, dword [ebp + 8]
add esp, 0x14
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x10]
push eax
push esi
call fcn.00504630
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x50346b
cmp edi, 0x757c
je 0x50346b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 1
call fcn.0059adfd
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
mov edx, dword [esi + 0x20]
mov byte [ebp - 4], 4
mov eax, dword [edx + 0x10]
push eax
push 0x667cc4
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push edx
call fcn.00502040
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
jne 0x5034fe
mov eax, dword [0x6754d4]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
mov edx, dword [ecx + 0x10]
push edx
push 0x667710
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x28]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00502040
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0059ad3d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
jmp 0x5037b8
mov eax, dword [ebp - 0x5c]
cmp eax, esi
mov ebx, eax
jne 0x503516
lea ebx, [ebp - 0x58]
mov edi, dword [ebp + 0x10]
push 0
push edi
push ebx
call fcn.0046dad0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x28], esi
jne 0x503771
mov edx, dword [0x6754d4]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
lea eax, [ebp - 0x24]
push 0x667c94
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x24]
add esp, 0x14
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00502040
xor eax, eax
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x64], ax
call fcn.00401fc0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00401fb0
push 0x5c
push eax
call fcn.0057e85a
add esp, 8
test eax, eax
jne 0x5035b2
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0059ad3d
jmp 0x50372a
add eax, 2
lea ecx, [ebp - 0x68]
mov word [eax], 0
call fcn.00401fb0
push 0
push eax
call fcn.0046e090
add esp, 8
test eax, eax
jne 0x50370e
mov ecx, dword [ebp - 0x1c]
push 0x667c70
call fcn.00502040
lea ecx, [ebp - 0x68]
call fcn.00401fb0
add eax, 6
push 0x5c
push eax
call fcn.0057ed7f
add esp, 8
mov esi, eax
test esi, esi
je 0x503700
lea ecx, [ebp - 0x68]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x80]
call fcn.00403bb0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
call fcn.00401fb0
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00401fb0
mov edx, esi
lea ecx, [ebp - 0x80]
sub edx, eax
sar edx, 1
mov word [edi + edx*2], 0
call fcn.00401fb0
push 0
push eax
call fcn.0046e090
add esp, 8
test eax, eax
jne 0x5036dc
lea ecx, [ebp - 0x80]
call fcn.00401fb0
push 0
push eax
call fcn.0046e270
add esp, 8
test eax, eax
jne 0x5036dc
lea ecx, [ebp - 0x80]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x34]
call fcn.0059adfd
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push 0x667c48
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push edx
call fcn.00502040
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.0059ad3d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0059ad3d
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x28]
jmp 0x503726
add esi, 2
push 0x5c
push esi
call fcn.0057ed7f
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp + 0x10]
jmp 0x5035fa
push 0
push edi
push ebx
call fcn.0046dad0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0059ad3d
test esi, esi
jne 0x503771
push edi
lea ecx, [ebp - 0x34]
call fcn.0059adfd
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push 0x667c18
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.00502040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
jmp 0x5037b8
push edi
lea ecx, [ebp - 0x34]
call fcn.0059adfd
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push edx
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x20]
mov byte [ebp - 4], 0xb
mov ecx, dword [eax + 0x10]
push ecx
push 0x667bfc
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push eax
call fcn.00502040
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp - 0x34]
call fcn.0059ad3d
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jbe 0x503ad2
mov al, byte [ebp - 0x11]
test al, al
jne 0x503ad2
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x4c], cx
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xc
mov eax, dword [edx + 0x20]
mov edx, 0x667bf4
test edx, edx
mov eax, dword [eax + 0x10]
je 0x5038b5
test eax, eax
je 0x5038b5
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x7c], cx
push eax
lea ecx, [ebp - 0x80]
call fcn.00401fc0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
call fcn.00401070
push 0x667bf4
lea ecx, [ebp - 0x74]
call fcn.00401f30
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.00401fb0
push eax
call fcn.0057e90a
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005970d9
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x50], edi
je 0x50389a
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x80]
call fcn.00401fb0
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401fb0
push esi
push eax
mov eax, dword [ebp - 0x50]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jne 0x5038bc
lea ecx, [ebp - 0x4c]
mov edi, dword [ebp - 0x1c]
push ecx
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x503911
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
mov dword [ecx + 8], edx
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x18]
push 0x667bbc
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x1c
mov ecx, edi
push eax
jmp 0x503aa4
mov ecx, dword [edi + 0x20]
push 0
push 0
push 2
mov edx, dword [ecx + 0x10]
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5039a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push 0x667ce4
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00502040
mov edx, dword [0x67b0f0]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.0050c130
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x20]
push 0
push 0
lea eax, [ebp - 0x34]
mov edx, dword [ecx + 0x10]
push 0
push eax
push edx
call fcn.0057f69a
mov eax, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x5039c4
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.00504630
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x503a26
cmp edi, 0x757c
je 0x503a26
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, esp
push 0x667b98
mov dword [edx], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x18]
push ecx
mov dword [edx + 8], eax
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0x18
mov ecx, ebx
push edx
call fcn.00502040
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x503a69
lea eax, [ebp - 0x4c]
push eax
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
jne 0x503aa9
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub esp, 0xc
mov eax, esp
push 0x667b78
mov dword [eax], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], edx
lea edx, [ebp - 0x18]
push edx
mov dword [eax + 8], ecx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.00502040
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [0x6526c0]
test eax, eax
mov eax, dword [esi]
je 0x503b04
test eax, eax
je 0x503add
mov eax, dword [ebp + 0x10]
jmp 0x503ae7
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
jmp 0x503abe
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503ae7
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
jmp 0x503b81
test eax, eax
je 0x503b0d
mov eax, dword [ebp + 0x10]
jmp 0x503b17
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503b17
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0059adfd
mov ecx, dword [ebp - 0x28]
push 0x3f
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
jne 0x503b4a
mov edx, dword [ebp - 0x28]
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x503b74
cmp dword [esi], 0
je 0x503b54
mov eax, dword [ebp + 0x10]
jmp 0x503b5e
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503b5e
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], esi
call fcn.0059ad3d
cmp esi, 0xffffffff
jne 0x503be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push 0x667ce4
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00502040
mov edx, dword [0x67b0f0]
push edx
mov ecx, dword [edi + 0x6c]
call fcn.0050c130
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push ecx
lea esi, [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x503c4c
mov eax, dword [esi + 4]
test eax, eax
jne 0x503c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x503c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x18]
push 0x667b4c
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00502040
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x503c69
mov ecx, dword [ebp - 0x38]
push 1
push 0
push 0
push ecx
call fcn.00581190
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
test eax, eax
je 0x503c84
push esi
push 0x147b
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x20]
mov ecx, dword [esi]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x18]
push 0x667b34
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, edi
push edx
call fcn.00502040
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push 2
push eax
push 0
push ecx
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x503cd6
mov esi, dword [ebp + 0x10]
mov eax, esi
jmp 0x503ce3
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503ce0
lea eax, [ebp - 0x58]
mov esi, dword [ebp + 0x10]
push 0
push 0
lea ecx, [ebp - 0x44]
push 0
push ecx
push eax
call fcn.0057f69a
add esp, 0x14
jmp 0x503cfb
mov esi, dword [ebp + 0x10]
test ebx, ebx
je 0x504000
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x503d0f
mov eax, esi
jmp 0x503d15
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
lea edx, [ebp - 0x18]
push 0x667b14
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, edi
push eax
call fcn.00502040
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x503e54
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00504630
mov esi, eax
test esi, esi
je 0x503e60
cmp esi, 0x757c
je 0x503e60
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x503e27
push ebx
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x503e27
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503d9e
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0057ee1f
add esp, 8
test eax, eax
je 0x503e27
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x503db6
lea eax, [ebp - 0x58]
push 0
push eax
push ebx
call fcn.0046dad0
add esp, 0xc
test eax, eax
jne 0x503df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push ebx
push 0x667ae0
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, edi
push eax
call fcn.00502040
jmp 0x503e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push ebx
push 0x667ac0
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.00502040
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x667a84
mov ecx, edi
call fcn.00502040
mov eax, dword [ebx + 0x10]
push eax
call fcn.00580313
mov ecx, dword [ebx + 0x10]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x503e7c
push 0x667b78
jmp 0x503e81
push 0x6676f8
lea edx, [ebp - 0x18]
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00502040
mov ecx, dword [ebx + 0x40]
lea edx, [ebp - 0x4c]
push ecx
push 0x64eff4
push edx
call fcn.0057f2ea
mov eax, dword [edi + 0x74]
mov ebx, dword [ebx + 0x38]
add esp, 0xc
test eax, eax
je 0x503cf8
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call esi
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x18]
push edx
push 0x667a60
push eax
call fcn.00593b08
mov ecx, dword [0x6754d4]
add esp, 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x28]
push edx
push 0x667a58
push eax
mov byte [ebp - 4], 0xf
call fcn.00593b08
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push ecx
mov ecx, dword [edi + 0x74]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x503f89
mov eax, dword [ebp - 0x34]
test eax, eax
jbe 0x503f89
mov ecx, dword [edi + 0x74]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push 0
push 0x667a54
push ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi + 0x74]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov eax, dword [edi + 0x74]
lea edx, [ebp - 0x24]
push 4
push edx
push 4
push 0
push 0x667a54
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.00502040
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
je 0x503fae
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x80], edx
jmp 0x503fb5
mov dword [ebp - 0x80], 0xffffffff
mov edx, dword [edi + 0x74]
lea ecx, [ebp - 0x84]
push 0x10
push ecx
push eax
push eax
push 0x655480
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x18]
push eax
push 0x667a28
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00502040
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0059ad3d
jmp 0x503cf8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0
cmp dword [edi + 0x48], 0xffffffff
jne 0x504050
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x504050
call ebx
push eax
lea edx, [ebp - 0x18]
push 0x6679fc
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00502040
xor eax, eax
mov dword [edi + 0x48], eax
jmp 0x50406c
mov ecx, dword [ebp - 0x38]
push 1
push 0
push 0
push ecx
call fcn.00581190
mov ecx, dword [edi + 0x48]
add ecx, eax
mov dword [edi + 0x48], ecx
mov eax, dword [edi + 0x4c]
adc eax, edx
mov edx, dword [ebp + 8]
mov dword [edi + 0x4c], eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00506d60
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
push eax
push ecx
lea edx, [ebp - 0x18]
push 0x6679d4
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, edi
push eax
call fcn.00502040
cmp dword [edi], 0
je 0x504400
test esi, esi
je 0x504400
push esi
call fcn.0057e90a
add esp, 4
test eax, eax
je 0x504400
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x504400
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x5040dc
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0057ee1f
add esp, 8
test eax, eax
je 0x504400
push 1
push esi
call fcn.0046df00
add esp, 8
test eax, eax
je 0x504136
push esi
lea ecx, [ebp + 8]
call fcn.0059adfd
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push 0x667d1c
push eax
mov byte [ebp - 4], 0x10
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00502040
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0059ad3d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x504144
mov ebx, eax
mov dword [ebp - 0x34], ebx
jmp 0x50414c
lea edx, [ebp - 0x58]
mov dword [ebp - 0x34], edx
mov ebx, edx
push 1
push esi
push ebx
call fcn.0046dad0
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x5043b4
mov eax, dword [0x6754d4]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push eax
push esi
push ebx
lea ecx, [ebp + 8]
push 0x667c94
push ecx
call fcn.00593b08
mov edx, dword [ebp + 8]
add esp, 0x14
mov ecx, edi
push edx
call fcn.00502040
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x4c], bx
call fcn.00401fc0
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 0x12
cmp eax, ebx
jne 0x5041ba
lea eax, [ebp - 0x4c]
push 0x5c
push eax
call fcn.0057e85a
add esp, 8
cmp eax, ebx
jne 0x5041e6
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0059ad3d
jmp 0x50436d
add eax, 2
mov word [eax], bx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x5041f6
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0046e090
add esp, 8
cmp eax, ebx
jne 0x50434e
push 0x667c70
mov ecx, edi
call fcn.00502040
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x50421f
lea eax, [ebp - 0x4c]
add eax, 6
push 0x5c
push eax
call fcn.0057ed7f
add esp, 8
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x504339
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x504243
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x64], bx
call fcn.00401fc0
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 0x13
cmp ecx, ebx
jne 0x504264
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x50426e
lea eax, [ebp - 0x4c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
lea ecx, [ebp - 0x68]
call fcn.00401fb0
push 1
push eax
call fcn.0046e090
add esp, 8
cmp eax, ebx
jne 0x504318
lea ecx, [ebp - 0x68]
call fcn.00401fb0
push 1
push eax
call fcn.0046e270
add esp, 8
cmp eax, ebx
jne 0x504318
lea ecx, [ebp - 0x68]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0059adfd
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
push 0x667c48
push ecx
call fcn.00593b08
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, edi
push edx
call fcn.00502040
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.0059ad3d
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0059ad3d
jmp 0x504368
add esi, 2
push 0x5c
push esi
call fcn.0057ed7f
add esp, 8
lea ecx, [ebp - 0x68]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
jmp 0x504231
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
push 1
push eax
push ecx
call fcn.0046dad0
add esp, 0xc
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0059ad3d
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
jne 0x5043b4
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.0059adfd
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x20]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
push eax
push edx
lea eax, [ebp - 0x18]
push 0x667c18
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.00502040
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
jmp 0x5043fb
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push edx
call fcn.0059adfd
mov ecx, dword [edi + 0x20]
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov byte [ebp - 4], 0x16
push edx
push 0x667bfc
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, edi
call fcn.00502040
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
mov dword [edx], 1
call fcn.0059ad3d
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x504596
mov eax, dword [0x67a050]
lea ecx, [ebp + 0x10]
lea edx, [ebp + 0xc]
push ecx
push edx
push 0
push 0
push 0x6679c8
push eax
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50443e
cmp dword [ebp + 0xc], 1
je 0x504596
mov ecx, dword [edi + 0x6c]
call fcn.0050bff0
mov eax, dword [0x67a028]
test eax, eax
jne 0x504454
mov eax, 0x67a02c
push eax
call fcn.005815f2
mov eax, dword [edi + 0x6c]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x504596
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x64], cx
mov edx, 0x64efb0
mov byte [ebp - 4], 0x17
test edx, edx
je 0x504557
test eax, eax
je 0x504557
xor esi, esi
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], esi
mov word [ebp - 0x70], si
call fcn.00401fc0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x18
call fcn.00401070
push esi
push 0x64efb0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
mov word [ebp - 0x7c], si
call fcn.004028e0
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 0x19
cmp eax, esi
jne 0x5044d9
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push eax
call fcn.0057e90a
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005970d9
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x68], edi
je 0x50453c
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x504517
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jne 0x504521
lea ecx, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push ecx
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x18
call fcn.00401070
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov ecx, dword [ebp - 0x68]
test ecx, ecx
mov eax, ecx
jne 0x504560
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.0057e85a
add esp, 8
test eax, eax
je 0x504587
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x50457e
lea eax, [ebp - 0x64]
push eax
call fcn.00580fbb
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401070
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x67a028]
test eax, eax
jne 0x5045a4
mov eax, 0x67a02c
push eax
call fcn.005815f2
mov edx, dword [edi + 0x70]
add esp, 4
mov eax, dword [edx]
test eax, eax
je 0x5045c9
push 0
push 0x147d
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc