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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x780
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
je 0x546924
push eax
call fcn.005493b0
test eax, eax
jne 0x546952
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 + 0xc]
test ecx, ecx
je 0x546952
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x546952
push eax
push ecx
mov ecx, ebx
call fcn.00549620
test eax, eax
jne 0x546952
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 [0x65ca8c]
mov dword [ebp - 0x14], eax
mov ecx, dword [str.DwnlData]
mov edx, dword [0x655528]
mov al, byte [0x65552c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x244]
push ecx
push edx
mov byte [ebp - 0x2c], al
mov eax, dword [0x6614e8]
push 0
push 0
push str.TempPath
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x546a0b
lea ecx, [ebp - 0x244]
push ecx
call fcn.0056d78e
add esp, 4
test eax, eax
jne 0x546a0b
lea edi, [ebp - 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x245], 0x5c
je 0x546a8a
mov edi, 0x6384b8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x546a8a
mov eax, dword [0x6614c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x546a6f
mov edx, dword [0x6614c8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x244]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 0x1c], esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x6614e8]
push edx
push 1
push eax
push str.TempPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x546a8a
lea edx, [ebp - 0x244]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x78c]
lea ecx, [ebp - 0x68c]
push eax
lea edx, [ebp - 0x58c]
push ecx
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x244]
push eax
push ecx
call fcn.0056b52c
add esp, 0x14
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x58c]
lea ecx, [ebp - 0x20]
push edx
push eax
push ecx
lea edx, [ebp - 0x244]
push str._s_s_s_
push edx
call fcn.0056b4da
lea eax, [ebp - 0x244]
push eax
call fcn.0056c982
add esp, 0x18
test eax, eax
je 0x546b49
call fcn.0056d327
cmp dword [eax], 0xd
je 0x546b49
call fcn.0056d327
cmp dword [eax], 0x11
je 0x546b49
mov esi, dword [0x662054]
call fcn.0056d327
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push ecx
mov ecx, dword [ebx + 0x39c]
call fcn.00478010
mov edx, dword [0x662050]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x5471ef
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x284]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x546b72
lea eax, [ebp - 0x284]
push str.default_user
push eax
call fcn.0056b4da
add esp, 8
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x546bde
lea ecx, [ebp - 0x284]
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x58c]
push edx
lea ecx, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x244]
push str._s_s_s_s_
push edx
call fcn.0056b4da
lea eax, [ebp - 0x244]
push eax
call fcn.0056c982
add esp, 0x1c
test eax, eax
je 0x546c75
call fcn.0056d327
cmp dword [eax], 0xd
je 0x546c75
call fcn.0056d327
cmp dword [eax], 0x11
je 0x546c75
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x58c]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
lea ecx, [ebp - 0x244]
push str._s_s_sdefault_user_
push ecx
call fcn.0056b4da
lea edx, [ebp - 0x244]
push edx
call fcn.0056c982
add esp, 0x18
test eax, eax
je 0x546c75
call fcn.0056d327
cmp dword [eax], 0xd
je 0x546c75
call fcn.0056d327
cmp dword [eax], 0x11
je 0x546c75
mov esi, dword [0x662054]
call fcn.0056d327
mov eax, dword [eax]
lea ecx, [ebp - 0x244]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x39c]
add esp, 0x10
push 1
push eax
call fcn.00478010
mov ecx, dword [0x662050]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x5471ef
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x140]
push 0x638c34
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x546e17
mov ecx, dword [ebx + 8]
push 0x3d
push ecx
call fcn.0056aa30
mov edx, dword [ebx + 8]
push 0x3f
push edx
mov esi, eax
call fcn.0056aa30
mov edi, eax
mov eax, dword [ebx + 8]
push 0x2f
push eax
call fcn.0056aa30
add esp, 0x18
cmp edi, esi
jae 0x546d3a
cmp esi, eax
jbe 0x546d38
inc esi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x546e88
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056b010
push 0x2e
push esi
call fcn.0056aa30
mov edx, eax
add esp, 0x14
test edx, edx
je 0x546ead
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x546ead
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x140]
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
jmp 0x546e73
cmp edi, esi
jbe 0x546dad
cmp edi, eax
jbe 0x546dad
lea esi, [edi + 1]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x546e88
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056b010
push 0x2e
push esi
call fcn.0056aa30
mov edx, eax
add esp, 0x14
test edx, edx
je 0x546ead
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x546ead
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x140]
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
jmp 0x546e73
lea esi, [eax + 1]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x546e88
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056b010
push 0x2e
push esi
call fcn.0056aa30
mov edx, eax
add esp, 0x14
test edx, edx
je 0x546ead
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x546ead
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x140]
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
jmp 0x546e73
mov esi, dword [ebx + 8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x546e88
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056b010
push 0x2e
push esi
call fcn.0056aa30
mov edx, eax
add esp, 0x14
test edx, edx
je 0x546ead
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x546ead
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x140]
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x546ea8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
test edx, edx
jne 0x546ee2
push edx
call fcn.0056c001
mov ecx, dword [0x662640]
add esp, 4
inc ecx
mov dword [0x662640], ecx
push ecx
push eax
lea ecx, [ebp - 0x140]
push str._ldf_ld
push ecx
call fcn.0056b4da
add esp, 0x10
jmp 0x546f09
lea edi, [ebp - 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x546f09
push edx
lea edx, [ebp - 0x140]
push 0x6390c4
push edx
call fcn.0056b4da
add esp, 0xc
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call fcn.00586ba1
push 0x2d
push 0x3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0057f2e1
push 0x2d
push 0x2a
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x3f
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x7c
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x3c
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x3e
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x22
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x25
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
push 0x2d
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.0057f2e1
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x68c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x58c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x78c]
push ecx
push edx
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x140]
push ecx
push edx
call fcn.0056b52c
mov esi, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x68c]
lea ecx, [ebp - 0x244]
push esi
push eax
push ecx
push str._s_s__ld_
lea edx, [ebp - 0x388]
push edx
call fcn.0056b4da
add esp, 0x14
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x388]
push esi
push eax
push ecx
mov ecx, dword [ebx + 0x398]
call fcn.004fa530
lea edx, [ebp - 0x388]
push edx
call fcn.0056c982
add esp, 4
test eax, eax
jne 0x5470f3
lea eax, [ebp - 0x388]
lea ecx, [ebp - 0x14]
push eax
push str.Folder__s_was_created._n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
mov ecx, dword [ebx + 0x398]
call fcn.004fa4e0
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x388]
push ecx
push edx
lea eax, [ebp - 0x48c]
push 0x637020
push eax
call fcn.0056b4da
mov eax, dword [ebx + 0x2c]
add esp, 0x10
test eax, eax
je 0x547092
push eax
call fcn.00582ef5
add esp, 4
lea edi, [ebp - 0x388]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x2c], edx
jne 0x547213
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, ebx
call fcn.00546070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x244]
push esi
push eax
lea ecx, [ebp - 0x388]
push str._s_ld_
push ecx
call fcn.0056b4da
add esp, 0x10
lea edx, [ebp - 0x78c]
lea eax, [ebp - 0x140]
push edx
push esi
push str._ld_s
push eax
call fcn.0056b4da
add esp, 0x10
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x388]
push esi
push ecx
mov ecx, dword [ebx + 0x398]
push edx
call fcn.004fa530
lea eax, [ebp - 0x388]
push eax
call fcn.0056c982
add esp, 4
test eax, eax
jne 0x54717c
lea ecx, [ebp - 0x388]
lea edx, [ebp - 0x14]
push ecx
push str.Folder__s_was_created._n
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
jmp 0x547055
call fcn.0056d327
cmp dword [eax], 0xd
je 0x547060
call fcn.0056d327
cmp dword [eax], 0x11
je 0x547060
mov esi, dword [0x662054]
call fcn.0056d327
mov ecx, dword [eax]
lea edx, [ebp - 0x388]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0057f8fb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push ecx
mov ecx, dword [ebx + 0x39c]
call fcn.00478010
mov edx, dword [0x662050]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [ebp - 0x388]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x5472dd
mov ecx, dword [ebx + 0x3a0]
test ecx, ecx
jne 0x54725b
push eax
mov ecx, ebx
call fcn.0054b0e0
test al, al
je 0x54744c
lea edi, [ebp - 0x48c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebp - 0x48c]
push ecx
push edx
push 1
push eax
mov eax, dword [ebx + 0x3a0]
push str.LocalFileName
push eax
call esi
lea edi, [ebp - 0x388]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0x3a0]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [ebp - 0x388]
push ecx
push 1
push eax
push str.LocalPath
push edx
call esi
mov eax, dword [ebx + 0x398]
or ecx, 0xffffffff
lea edx, [eax + 4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebx + 0x3a0]
push str.LogFileName
push eax
call esi
jmp 0x54744c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54744c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x54744c
lea ecx, [ebp - 0x1c]
lea edx, [ebp + 8]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagerGrabberStsProjects_
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x54744c
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
push edi
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
push edx
mov byte [ebp - 4], 3
call fcn.0057f8fb
add esp, 0xc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push edx
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x54743d
mov eax, dword [ebp + 8]
push eax
call ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push ecx
push edi
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push edx
call fcn.0057f8fb
add esp, 0x10
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push edx
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x54743d
lea edi, [ebp - 0x48c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x48c]
not ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
push 1
push 0
push str.LocalFileName
push ecx
call esi
lea edi, [ebp - 0x388]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x388]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebp + 8]
push str.LocalPath
push eax
call esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x398]
or ecx, 0xffffffff
lea edx, [eax + 4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp + 8]
push 1
push eax
push str.LogFileName
push edx
call esi
mov eax, dword [ebp + 8]
push eax
call ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00586b33
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, ebx
call fcn.00549a40
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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