Function at 0x5d3980
Capabilities:
Check if file exists
Get file attributes
Get session user name
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xdd4]
sub esp, 0xdd4
push 0xffffffffffffffff
push 0x667248
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0xdd0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp byte [ebx + 0x182], 0
jne 0x5d3a0f
mov eax, dword [ebp + 0xddc]
test eax, eax
je 0x5d39ea
push eax
call fcn.005d1d30
test eax, eax
jne 0x5d3a0f
jmp 0x5d45ed
mov ecx, dword [ebp + 0xde0]
test ecx, ecx
je 0x5d3a0f
mov eax, dword [ebp + 0xde4]
test eax, eax
je 0x5d3a0f
push eax
push ecx
mov ecx, ebx
call fcn.005d1eb0
test eax, eax
je 0x5d45ed
mov byte [ebx + 0x182], 0
lea ecx, [ebp - 0x20]
call fcn.00402510
mov byte [ebp - 4], 1
mov eax, dword [str.DwnlData]
mov dword [ebp + 0xdb4], eax
mov ecx, dword [0x6b6dd0]
mov dword [ebp + 0xdb8], ecx
mov edx, dword [0x6b6dd4]
mov dword [ebp + 0xdbc], edx
mov eax, dword [0x6b6dd8]
mov dword [ebp + 0xdc0], eax
mov cx, word [0x6b6ddc]
mov word [ebp + 0xdc4], cx
mov dword [ebp - 0x34], 0x80
mov dword [ebp - 0x38], 0x208
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp + 0xaa8]
push eax
push 0
push 0
push str.TempPath
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d3af8
lea edx, [ebp + 0xaa8]
push edx
call fcn.00622fe3
add esp, 4
test eax, eax
jne 0x5d3af8
lea eax, [ebp + 0xaa8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d3ab0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0xaa6], 0x5c
je 0x5d3ba2
lea edi, [ebp + 0xaa8]
add edi, 0xfffffffe
jmp 0x5d3ae0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5d3ae0
mov eax, dword [0x679980]
mov dword [edi], eax
jmp 0x5d3ba2
mov eax, dword [0x75dc38]
test eax, eax
jne 0x5d3b06
mov eax, 0x75dc3c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5d3b87
mov esi, dword [0x75dc38]
test esi, esi
mov ecx, esi
jne 0x5d3b23
mov ecx, 0x75dc3c
lea edx, [ebp + 0xaa8]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x5d3b30
test esi, esi
mov eax, esi
jne 0x5d3b4c
mov eax, 0x75dc3c
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d3b50
sub eax, edx
sar eax, 1
test esi, esi
mov ecx, esi
jne 0x5d3b6a
mov ecx, 0x75dc3c
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.TempPath
mov eax, dword [0x75dbe4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x5d3ba2
push 0x104
lea ecx, [ebp + 0xaa8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x100
lea edx, [ebp + 0x18]
push edx
push 0x100
lea eax, [ebp + 0x218]
push eax
push 0x100
lea ecx, [ebp + 0x418]
push ecx
push 3
lea edx, [ebp + 0xdc8]
push edx
lea eax, [ebp + 0xaa8]
push eax
call fcn.006231d7
lea ecx, [ebp + 0xdb4]
push ecx
lea edx, [ebp + 0x418]
push edx
lea eax, [ebp + 0xdc8]
push eax
push 0x68d6ac
lea ecx, [ebp + 0xaa8]
push ecx
call fcn.0040f8d0
lea edx, [ebp + 0xaa8]
push edx
call fcn.00624a7c
add esp, 0x3c
test eax, eax
je 0x5d3c59
call fcn.00625a54
cmp dword [eax], 0xd
je 0x5d3c59
call fcn.00625a54
cmp dword [eax], 0x11
je 0x5d3c59
call fcn.00625a54
mov ecx, dword [ebx + 0x488]
push ecx
lea edx, [ebp + 0xaa8]
push edx
mov eax, dword [eax]
push eax
call fcn.005cd870
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402580
mov eax, 0x7546
jmp 0x5d45ed
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp + 0xa28]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x5d3c82
push str.default_user
lea eax, [ebp + 0xa28]
push eax
call fcn.0040f8d0
add esp, 8
mov byte [ebp - 0x19], 0
lea eax, [ebp + 0xa28]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d3c90
sub eax, edx
sar eax, 1
je 0x5d3cfb
lea ecx, [ebp + 0xa28]
push ecx
lea edx, [ebp + 0xdb4]
push edx
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp + 0xdc8]
push ecx
push str._s_s_s_s_
lea edx, [ebp + 0xaa8]
push edx
call fcn.0040f8d0
lea eax, [ebp + 0xaa8]
push eax
call fcn.00624a7c
add esp, 0x1c
test eax, eax
je 0x5d3cf5
call fcn.00625a54
cmp dword [eax], 0xd
je 0x5d3cf5
call fcn.00625a54
cmp dword [eax], 0x11
jne 0x5d3cfb
mov byte [ebp - 0x19], 1
jmp 0x5d3d4c
lea ecx, [ebp + 0xdb4]
push ecx
lea edx, [ebp + 0x418]
push edx
lea eax, [ebp + 0xdc8]
push eax
push str._s_s_sdefault_user_
lea ecx, [ebp + 0xaa8]
push ecx
call fcn.0040f8d0
lea edx, [ebp + 0xaa8]
push edx
call fcn.00624a7c
add esp, 0x18
test eax, eax
je 0x5d3d4c
call fcn.00625a54
cmp dword [eax], 0xd
je 0x5d3d4c
call fcn.00625a54
cmp dword [eax], 0x11
jne 0x5d3c25
push 0x104
push 0
lea ecx, [ebp + 0xcb0]
push ecx
call fcn.00620920
add esp, 0xc
mov eax, dword [ebx + 8]
test eax, eax
je 0x5d3efe
push 0x67d26c
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x5d3eeb
cmp dword [ebp + 0xddc], 0
je 0x5d3deb
mov eax, dword [ebx]
test eax, eax
je 0x5d3deb
push 0x14
push eax
lea edx, [ebp + 0xcb0]
push edx
call fcn.00621aa0
add esp, 0xc
lea eax, [ebp + 0xcb0]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov byte [ebp - 4], 2
push 0x5f
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.00422e30
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + 0xcb0]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5d3dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402580
jmp 0x5d3efe
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
push 0x3d
push eax
call fcn.006229e0
mov esi, eax
mov eax, dword [ebx + 8]
push 0x3f
push eax
call fcn.006229e0
mov edi, eax
mov eax, dword [ebx + 8]
push 0x2f
push eax
call fcn.006229e0
add esp, 0x18
mov ebx, eax
cmp edi, esi
jae 0x5d3e4e
cmp esi, ebx
jbe 0x5d3e4c
test esi, esi
je 0x5d3e4c
mov ecx, esi
lea eax, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5d3e30
sub ecx, eax
cmp ecx, 1
jbe 0x5d3e4c
inc esi
push esi
lea ecx, [ebp + 0xcb0]
push ecx
jmp 0x5d3ef6
cmp edi, esi
jbe 0x5d3e79
cmp edi, ebx
jbe 0x5d3e79
test edi, edi
je 0x5d3e79
mov ecx, edi
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5d3e60
sub ecx, esi
cmp ecx, 1
jbe 0x5d3e79
inc edi
push edi
lea edx, [ebp + 0xcb0]
push edx
jmp 0x5d3ef6
test ebx, ebx
je 0x5d3e94
mov ecx, ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5d3e82
sub ecx, esi
cmp ecx, 1
jbe 0x5d3e94
inc ebx
push ebx
jmp 0x5d3eef
push 0x14
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
lea eax, [ebp + 0xcb0]
push eax
call fcn.00621aa0
add esp, 0xc
lea ecx, [ebp + 0xcb0]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov byte [ebp - 4], 3
push 0x5f
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.00422e30
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + 0xcb0]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5d3ed3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402580
jmp 0x5d3efe
mov edx, dword [ebx + 8]
push edx
lea eax, [ebp + 0xcb0]
push eax
call fcn.005cb820
add esp, 8
mov esi, dword [ebp + 0xddc]
test esi, esi
jne 0x5d3f33
push esi
call fcn.006239e1
mov ecx, dword [0x75f82c]
inc ecx
mov dword [0x75f82c], ecx
push ecx
push eax
push str._luf_lu
lea ecx, [ebp + 0xcb0]
push ecx
call fcn.0062311b
add esp, 0x14
jmp 0x5d3f60
lea eax, [ebp + 0xcb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d3f40
sub eax, edx
jne 0x5d3f60
push esi
push 0x6795fc
lea edx, [ebp + 0xcb0]
push edx
call fcn.0062311b
add esp, 0xc
lea eax, [ebp + 0xcb0]
push eax
lea ecx, [ebp - 0x18]
call fcn.004030c0
mov byte [ebp - 4], 4
push 0x2d
push 0x3a
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x2a
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2e
push 0x3f
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x7c
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x3c
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x3e
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x27
push 0x22
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x25
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x2d
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.00422e30
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp + 0xcb0]
push edx
call fcn.00405490
add esp, 0xc
lea eax, [ebp + 0xcb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d4010
sub eax, edx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jge 0x5d4037
cmp byte [ebp + ecx + 0xcb0], 0x20
jge 0x5d4034
mov byte [ebp + ecx + 0xcb0], 0x2d
inc ecx
jmp 0x5d401b
lea eax, [ebp + 0xcb0]
push eax
lea ecx, [ebp + 0xc]
call fcn.00406fb0
mov bl, 5
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
jne 0x5d4057
lea eax, [ebp + 0x10]
push 0x100
lea ecx, [ebp + 0x18]
push ecx
push 0x100
lea edx, [ebp + 0x218]
push edx
push 0x100
lea ecx, [ebp + 0x418]
push ecx
push 3
lea edx, [ebp + 0xdc8]
push edx
push eax
call fcn.006231d7
add esp, 0x24
test eax, eax
jne 0x5d40b9
mov esi, dword [ebp + 0xddc]
push esi
lea eax, [ebp + 0x218]
push eax
lea ecx, [ebp + 0xaa8]
push ecx
push str._s_s__ld_
lea edx, [ebp + 0x820]
push edx
call fcn.0040f8d0
add esp, 0x14
jmp 0x5d4138
mov dword [ebp], edi
mov dword [ebp + 8], edi
xor eax, eax
mov word [ebp + 4], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x5d40d3
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp]
call fcn.00401800
mov eax, dword [ebp]
cmp eax, edi
jne 0x5d40e6
lea eax, [ebp + 4]
push 0x2e
push eax
call fcn.0061fd52
add esp, 8
cmp eax, edi
je 0x5d40fa
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp]
cmp eax, edi
jne 0x5d4104
lea eax, [ebp + 4]
mov edx, dword [ebp + 0xddc]
push edx
push eax
lea eax, [ebp + 0xaa8]
push eax
push str._s_s__ld_
lea ecx, [ebp + 0x820]
push ecx
call fcn.0040f8d0
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
mov esi, dword [ebp + 0xddc]
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x5d4142
lea eax, [ebp + 0x10]
push esi
push eax
lea edx, [ebp + 0x820]
push edx
mov edi, dword [ebp - 0x28]
mov ecx, dword [edi + 0x484]
call fcn.0056ad40
lea eax, [ebp + 0x820]
push eax
call fcn.00624a7c
add esp, 4
test eax, eax
jne 0x5d419d
lea ecx, [ebp + 0x820]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00417be0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
push edx
push str.Folder__s_was_created._n
lea eax, [ebp - 0x20]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x5d4241
push esi
lea edx, [ebp + 0xaa8]
push edx
push str._s_ld_
lea eax, [ebp + 0x820]
push eax
call fcn.0040f8d0
lea ecx, [ebp + 0x18]
push ecx
push esi
push str._ld_s
lea edx, [ebp + 0xcb0]
push edx
call fcn.0062311b
add esp, 0x20
push 0
lea eax, [ebp + 0xcb0]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401990
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5d41ea
lea eax, [ebp + 0x10]
push esi
push eax
lea ecx, [ebp + 0x820]
push ecx
mov ecx, dword [edi + 0x484]
call fcn.0056ad40
lea edx, [ebp + 0x820]
push edx
call fcn.00624a7c
add esp, 4
test eax, eax
jne 0x5d42f6
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x14]
call fcn.00417be0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
push ecx
push str.Folder__s_was_created._n
lea edx, [ebp - 0x20]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edi + 0x484]
call fcn.0056a780
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5d4261
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x820]
push ecx
push 0x67c1a4
lea edx, [ebp + 0x618]
push edx
call fcn.0040f8d0
add esp, 0x10
lea eax, [ebp + 0x820]
push eax
mov ecx, edi
call fcn.005cb590
mov esi, eax
test esi, esi
jne 0x5d42cb
mov eax, dword [ebp + 0xddc]
test eax, eax
je 0x5d4403
cmp dword [edi + 0x48c], esi
jne 0x5d434d
push eax
mov ecx, edi
call fcn.005cee30
test al, al
jne 0x5d434d
lea ecx, [ebp + 0x618]
push ecx
mov ecx, edi
call fcn.005ce060
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00402580
mov eax, esi
jmp 0x5d45ed
call fcn.00625a54
cmp dword [eax], 0xd
je 0x5d4257
call fcn.00625a54
cmp dword [eax], 0x11
je 0x5d4257
call fcn.00625a54
mov ecx, dword [edi + 0x488]
push ecx
lea edx, [ebp + 0x820]
push edx
mov eax, dword [eax]
push eax
call fcn.005cd870
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x5d3c43
lea eax, [ebp + 0x618]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d4356
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp + 0x618]
push eax
push 1
push 0
push 0x687b9c
mov ecx, dword [edi + 0x48c]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call ebx
lea eax, [ebp + 0x820]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d4392
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp + 0x820]
push eax
push 1
push 0
push str.LocalPath
mov ecx, dword [edi + 0x48c]
push ecx
call ebx
mov eax, dword [edi + 0x484]
lea ecx, [eax + 4]
mov eax, ecx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5d43d0
sub eax, esi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.LogFileName
mov eax, dword [edi + 0x48c]
push eax
call ebx
lea edx, [ebp + 0x618]
push edx
jmp 0x5d42c2
cmp dword [ebp + 0xde0], 0
je 0x5d45bc
cmp dword [ebp + 0xde4], 0
je 0x5d45bc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call esi
test eax, eax
jne 0x5d45bc
mov eax, dword [ebp - 0x24]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 0xde0]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x5d45ae
mov eax, dword [ebp - 0x24]
push eax
call edi
mov ecx, dword [ebp + 0xde4]
push ecx
mov edx, dword [ebp + 0xde0]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x5d45ae
lea eax, [ebp + 0x618]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d4503
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp + 0x618]
push edx
push 1
push 0
push 0x687b9c
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp + 0x820]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5d4540
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp + 0x820]
push edx
push 1
push 0
push str.LocalPath
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x484]
lea ecx, [eax + 4]
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5d4580
sub eax, esi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push str.LogFileName
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
call edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
mov edi, dword [ebp - 0x28]
lea edx, [ebp + 0x618]
push edx
jmp 0x5d42c2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xdd0]
xor ecx, ebp
call fcn.0062023e
add ebp, 0xdd4
mov esp, ebp
pop ebp
ret 0xc