Function at 0x548200
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 0x5af538
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 0x548254
push eax
call fcn.0054ae30
test eax, eax
jne 0x548282
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 0x548282
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x548282
push eax
push ecx
mov ecx, ebx
call fcn.0054b0a0
test eax, eax
jne 0x548282
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 [0x65ec1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [str.DwnlData]
mov edx, dword [0x657698]
mov al, byte [0x65769c]
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 [0x663680]
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 0x54833b
lea ecx, [ebp - 0x244]
push ecx
call fcn.0056f30e
add esp, 4
test eax, eax
jne 0x54833b
lea edi, [ebp - 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x245], 0x5c
je 0x5483ba
mov edi, 0x63a4cc
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 0x5483ba
mov eax, dword [0x663660]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x54839f
mov edx, dword [0x663660]
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 [0x663680]
push edx
push 1
push eax
push str.TempPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x5483ba
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.0056d0ac
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.0056d05a
lea eax, [ebp - 0x244]
push eax
call fcn.0056e502
add esp, 0x18
test eax, eax
je 0x548479
call fcn.0056eea7
cmp dword [eax], 0xd
je 0x548479
call fcn.0056eea7
cmp dword [eax], 0x11
je 0x548479
mov esi, dword [0x6641ec]
call fcn.0056eea7
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push ecx
mov ecx, dword [ebx + 0x39c]
call fcn.00478c60
mov edx, dword [0x6641e8]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x548b1f
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x284]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x5484a2
lea eax, [ebp - 0x284]
push str.default_user
push eax
call fcn.0056d05a
add esp, 8
lea edi, [ebp - 0x284]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x54850e
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.0056d05a
lea eax, [ebp - 0x244]
push eax
call fcn.0056e502
add esp, 0x1c
test eax, eax
je 0x5485a5
call fcn.0056eea7
cmp dword [eax], 0xd
je 0x5485a5
call fcn.0056eea7
cmp dword [eax], 0x11
je 0x5485a5
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.0056d05a
lea edx, [ebp - 0x244]
push edx
call fcn.0056e502
add esp, 0x18
test eax, eax
je 0x5485a5
call fcn.0056eea7
cmp dword [eax], 0xd
je 0x5485a5
call fcn.0056eea7
cmp dword [eax], 0x11
je 0x5485a5
mov esi, dword [0x6641ec]
call fcn.0056eea7
mov eax, dword [eax]
lea ecx, [ebp - 0x244]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x39c]
add esp, 0x10
push 1
push eax
call fcn.00478c60
mov ecx, dword [0x6641e8]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x548b1f
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x140]
push 0x63ac48
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
push eax
call fcn.0056c6b0
add esp, 8
test eax, eax
je 0x548747
mov ecx, dword [ebx + 8]
push 0x3d
push ecx
call fcn.0056c5b0
mov edx, dword [ebx + 8]
push 0x3f
push edx
mov esi, eax
call fcn.0056c5b0
mov edi, eax
mov eax, dword [ebx + 8]
push 0x2f
push eax
call fcn.0056c5b0
add esp, 0x18
cmp edi, esi
jae 0x54866a
cmp esi, eax
jbe 0x548668
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 0x5487b8
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056cb90
push 0x2e
push esi
call fcn.0056c5b0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5487dd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5487dd
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 0x5487a3
cmp edi, esi
jbe 0x5486dd
cmp edi, eax
jbe 0x5486dd
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 0x5487b8
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056cb90
push 0x2e
push esi
call fcn.0056c5b0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5487dd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5487dd
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 0x5487a3
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 0x5487b8
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056cb90
push 0x2e
push esi
call fcn.0056c5b0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5487dd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5487dd
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 0x5487a3
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 0x5487b8
push 0x1e
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.0056cb90
push 0x2e
push esi
call fcn.0056c5b0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5487dd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5487dd
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 0x5487d8
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 0x548812
push edx
call fcn.0056db81
mov ecx, dword [0x6647d8]
add esp, 4
inc ecx
mov dword [0x6647d8], ecx
push ecx
push eax
lea ecx, [ebp - 0x140]
push str._ldf_ld
push ecx
call fcn.0056d05a
add esp, 0x10
jmp 0x548839
lea edi, [ebp - 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x548839
push edx
lea edx, [ebp - 0x140]
push 0x63b0d8
push edx
call fcn.0056d05a
add esp, 0xc
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call fcn.0058872e
push 0x2d
push 0x3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00580e71
push 0x2d
push 0x2a
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x3f
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x7c
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x3c
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x3e
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x22
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x25
lea ecx, [ebp - 0x18]
call fcn.00580e71
push 0x2d
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.00580e71
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.0056d0ac
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.0056d05a
add esp, 0x14
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x388]
push esi
push eax
push ecx
mov ecx, dword [ebx + 0x398]
call fcn.004fbbf0
lea edx, [ebp - 0x388]
push edx
call fcn.0056e502
add esp, 4
test eax, eax
jne 0x548a23
lea eax, [ebp - 0x388]
lea ecx, [ebp - 0x14]
push eax
push str.Folder__s_was_created._n
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
mov ecx, dword [ebx + 0x398]
call fcn.004fbba0
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x388]
push ecx
push edx
lea eax, [ebp - 0x48c]
push 0x639028
push eax
call fcn.0056d05a
mov eax, dword [ebx + 0x2c]
add esp, 0x10
test eax, eax
je 0x5489c2
push eax
call fcn.00584a85
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.00584a5c
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx + 0x2c], edx
jne 0x548b43
push str.URL::set_localPath__:_Not_enough_memory__n
mov ecx, ebx
call fcn.005479a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
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.0056d05a
add esp, 0x10
lea edx, [ebp - 0x78c]
lea eax, [ebp - 0x140]
push edx
push esi
push str._ld_s
push eax
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x388]
push esi
push ecx
mov ecx, dword [ebx + 0x398]
push edx
call fcn.004fbbf0
lea eax, [ebp - 0x388]
push eax
call fcn.0056e502
add esp, 4
test eax, eax
jne 0x548aac
lea ecx, [ebp - 0x388]
lea edx, [ebp - 0x14]
push ecx
push str.Folder__s_was_created._n
push edx
call fcn.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
jmp 0x548985
call fcn.0056eea7
cmp dword [eax], 0xd
je 0x548990
call fcn.0056eea7
cmp dword [eax], 0x11
je 0x548990
mov esi, dword [0x6641ec]
call fcn.0056eea7
mov ecx, dword [eax]
lea edx, [ebp - 0x388]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push 1
push ecx
mov ecx, dword [ebx + 0x39c]
call fcn.00478c60
mov edx, dword [0x6641e8]
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.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0x548c0d
mov ecx, dword [ebx + 0x3a0]
test ecx, ecx
jne 0x548b8b
push eax
mov ecx, ebx
call fcn.0054cc00
test al, al
je 0x548d7c
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 0x548d7c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x548d7c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x548d7c
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 0x663188
push 0
push str.SoftwareDownloadManagerGrabberStsProjects_
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x548d7c
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [0x65ec1c]
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.0058148b
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 0x663188
push 0
push edx
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x548d6d
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.0058148b
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 0x663188
push 0
push edx
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x548d6d
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.005886c0
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, ebx
call fcn.0054b4d0
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
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