Function at 0x4c3ac0
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 0x558b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], edi
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], 0
test eax, eax
je 0x4c454a
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
call fcn.004c5fb0
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.004c2cc0
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx]
test eax, eax
je 0x4c3b2e
push 0
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4c3b4a
mov edx, dword [edi + 0x10]
push edx
push 0x1392
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4c3de4
cmp dword [edi], 0
je 0x4c3de4
mov eax, dword [edi + 0x14]
push ebx
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00524fd0
add esp, 8
test eax, eax
je 0x4c3de4
push 1
push ebx
call fcn.0044a8b0
add esp, 8
test eax, eax
je 0x4c3ba8
push ebx
lea edx, [ebp - 0x298]
push str.Delete_old_file__s_n
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.004c2cc0
mov ecx, dword [edi + 0x14]
push 0
push ebx
mov esi, dword [ecx + 0x10]
push esi
mov dword [ebp - 0x30], esi
call fcn.0044a700
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4c3da9
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
lea eax, [ebp - 0x20]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.004c2cc0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00537b72
mov edx, dword [ebp - 0x1c]
push 0x5c
push edx
mov byte [ebp - 4], 2
call fcn.0051c7b0
add esp, 8
test eax, eax
jne 0x4c3c36
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x4c3d76
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x1c]
push 0
push eax
call fcn.0044a970
add esp, 8
test eax, eax
jne 0x4c3d57
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.004c2cc0
mov esi, 2
jmp 0x4c3c66
mov ebx, dword [ebp + 0xc]
inc esi
lea ecx, [ebp - 0x1c]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x4c3d45
lea ecx, [ebp - 0x44]
push esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
mov byte [ebp - 4], 3
call fcn.0044a970
add esp, 8
lea ecx, [ebp - 0x44]
test eax, eax
sete bl
mov byte [ebp - 4], 2
call fcn.00537b04
test bl, bl
je 0x4c3c63
lea edx, [ebp - 0x50]
push esi
push edx
lea ecx, [ebp - 0x1c]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.0044aa70
add esp, 8
lea ecx, [ebp - 0x50]
test eax, eax
sete bl
mov byte [ebp - 4], 2
call fcn.00537b04
test bl, bl
je 0x4c3c63
lea eax, [ebp - 0x30]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.005304fa
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [ebp - 0x20]
push str.Can_not_create_folder__s__error___ld_n
push edx
call fcn.0053091a
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004c2cc0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ebx, dword [ebp + 0xc]
jmp 0x4c3d6f
mov ecx, dword [ebp - 0x30]
push 0
push ebx
push ecx
call fcn.0044a700
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4c3da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0x14]
push eax
push ebx
lea ecx, [ebp - 0x298]
mov eax, dword [edx + 0x10]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
jmp 0x4c3de4
call fcn.0051ec14
mov ecx, dword [edi + 0x14]
mov eax, dword [eax]
push eax
push ebx
mov edx, dword [ecx + 0x10]
lea eax, [ebp - 0x298]
push edx
push str.Rename_temp_file__s_to__s._n
push eax
call fcn.0051d0e8
add esp, 0x14
lea ecx, [ebp - 0x298]
push ecx
mov ecx, edi
call fcn.004c2cc0
mov edx, dword [ebp + 8]
mov dword [edx], 1
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4c3df0
mov eax, ebx
jmp 0x4c3df6
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x10]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x4c3e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [ebp - 0x298]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.004c2cc0
mov ecx, dword [0x5bb6fc]
push ecx
mov ecx, dword [edi + 0x4c]
call fcn.004c9920
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 8
lea edx, [ebp - 0x4c]
lea esi, [edi + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4c3ec0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c3ec0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4c3ec0
call ebx
push eax
lea eax, [ebp - 0x298]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x298]
push ecx
mov ecx, edi
call fcn.004c2cc0
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
jmp 0x4c3edf
mov edx, dword [ebp - 0x4c]
push 1
push 0
push 0
push edx
call fcn.0051ec30
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
xor ebx, ebx
mov dword [esi + 4], eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax]
cmp eax, ebx
je 0x4c3efa
push esi
push 0x1393
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x14]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
lea edx, [ebp - 0x298]
push str.Size_of__s_is__I64d_n
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.004c2cc0
mov ecx, dword [ebp - 0x18]
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 8]
cmp dword [edx], ebx
je 0x4c3f44
mov eax, dword [ebp + 0xc]
jmp 0x4c3f4a
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x10]
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ebx
push ecx
push eax
call fcn.0051d13a
mov esi, dword [ebp - 0x2c]
add esp, 0x14
cmp esi, ebx
je 0x4c4266
mov edx, dword [ebp + 8]
cmp dword [edx], ebx
je 0x4c3f71
mov eax, dword [ebp + 0xc]
jmp 0x4c3f77
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
lea edx, [ebp - 0x298]
push str.Adding_file__s_to_file__s._n
push edx
call fcn.0051d0e8
add esp, 0x10
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.004c2cc0
cmp dword [esi + 0x14], ebx
je 0x4c40bd
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push ecx
push edx
push eax
mov ecx, edi
call fcn.004c45a0
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4c40c9
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4c40a7
mov edx, dword [edi + 0x14]
mov esi, eax
mov edx, dword [edx + 0x10]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4c4008
test cl, cl
je 0x4c4004
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4c4008
add eax, 2
add esi, 2
test cl, cl
jne 0x4c3fe4
xor eax, eax
jmp 0x4c400d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c40a7
mov esi, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4c406c
call fcn.0051ec14
mov ecx, dword [edi + 0x14]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x298]
mov edx, dword [ecx + 0x10]
push edx
push esi
push str.Can_not_rename_back_file__s_to__s__errno___ld_n
push eax
call fcn.0051d0e8
add esp, 0x14
lea ecx, [ebp - 0x298]
push ecx
mov ecx, edi
call fcn.004c2cc0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0051ec14
mov edx, dword [eax]
mov eax, dword [edi + 0x14]
push edx
lea edx, [ebp - 0x298]
mov ecx, dword [eax + 0x10]
push ecx
push esi
push str.Rename_back_file__s_to__s._n
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.004c2cc0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, edi
call fcn.004c2cc0
mov edx, dword [esi + 0x10]
push edx
call fcn.0051de13
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [esi + 0x10]
push eax
jne 0x4c40e5
push str.Could_not_delete_temp_file__s_n
jmp 0x4c40ea
push str.Deleting_temp_file__s_n
lea ecx, [ebp - 0x298]
push ecx
call fcn.0051d0e8
add esp, 0xc
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x2c]
push eax
push 0x597df0
push ecx
call fcn.0051d0e8
mov eax, dword [edi + 0x54]
mov esi, dword [esi + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x4c3f5d
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x298]
push eax
push str.Deleting_record__s_from_registry_n
push ecx
call fcn.0051d0e8
mov edx, dword [0x5b5ecc]
add esp, 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push eax
push str.sk_s
push ecx
mov byte [ebp - 4], 6
call fcn.0053091a
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
push edx
mov edx, dword [edi + 0x54]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c41ee
cmp dword [ebp - 0x24], ebx
jbe 0x4c41ee
mov edx, dword [edi + 0x54]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push ebx
push 0x5ad7cc
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0x54]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [edi + 0x54]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push ebx
push 0x5ad7cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
cmp esi, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
je 0x4c4211
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
jmp 0x4c4218
mov dword [ebp - 0x5c], 0xffffffff
mov edx, dword [edi + 0x54]
lea ecx, [ebp - 0x60]
push 0x10
push ecx
push ebx
push ebx
push 0x59d84c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x298]
push eax
push str.Updating_record_with_ID_0__set_nextID__d_n
push ecx
call fcn.0051d0e8
add esp, 0xc
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x4c3f5d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.004c5950
push str.Rebuilding_file_complete._n
mov ecx, edi
call fcn.004c2cc0
cmp dword [edi], ebx
je 0x4c453b
cmp dword [ebp + 0xc], ebx
je 0x4c453b
mov ecx, dword [ebp + 8]
cmp dword [ecx], ebx
jne 0x4c453b
mov edx, dword [edi + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4c42cc
test cl, cl
je 0x4c42c8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4c42cc
add eax, 2
add esi, 2
test cl, cl
jne 0x4c42a8
xor eax, eax
jmp 0x4c42d1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4c453b
mov esi, dword [ebp + 0xc]
push 1
push esi
call fcn.0044a8b0
add esp, 8
cmp eax, ebx
je 0x4c430e
push esi
lea eax, [ebp - 0x298]
push str.Delete_old_file__s_n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x298]
push ecx
mov ecx, edi
call fcn.004c2cc0
mov edx, dword [edi + 0x14]
mov eax, dword [ebp + 0xc]
push 1
push eax
mov ebx, dword [edx + 0x10]
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.0044a700
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4c44fd
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0xc]
push eax
push esi
push ebx
lea edx, [ebp - 0x14]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push edx
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov ecx, edi
push eax
call fcn.004c2cc0
push esi
lea ecx, [ebp - 0x18]
call fcn.00537b72
mov ecx, dword [ebp - 0x18]
push 0x5c
push ecx
mov byte [ebp - 4], 8
call fcn.0051c7b0
add esp, 8
test eax, eax
jne 0x4c43a2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x4c44c7
mov byte [eax + 1], 0
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0044a970
add esp, 8
test eax, eax
jne 0x4c44a8
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.004c2cc0
mov esi, 2
jmp 0x4c43d2
mov ebx, dword [ebp - 0x2c]
inc esi
lea ecx, [ebp - 0x18]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x4c4496
lea eax, [ebp - 0x38]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.005304fa
mov eax, dword [eax]
push 1
push eax
mov byte [ebp - 4], 9
call fcn.0044a970
add esp, 8
lea ecx, [ebp - 0x38]
test eax, eax
sete bl
mov byte [ebp - 4], 8
call fcn.00537b04
test bl, bl
je 0x4c43cf
lea ecx, [ebp - 0x3c]
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.005304fa
mov eax, dword [eax]
push 1
push eax
mov byte [ebp - 4], 0xa
call fcn.0044aa70
add esp, 8
lea ecx, [ebp - 0x3c]
test eax, eax
sete bl
mov byte [ebp - 4], 8
call fcn.00537b04
test bl, bl
je 0x4c43cf
lea edx, [ebp - 0x40]
push esi
push edx
lea ecx, [ebp - 0x18]
call fcn.005304fa
mov esi, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x14]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.0053091a
add esp, 0x10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00537b04
mov edx, dword [ebp - 0x14]
mov ecx, edi
push edx
call fcn.004c2cc0
jmp 0x4c44a8
mov eax, dword [ebp + 0xc]
push 1
push eax
push ebx
call fcn.0044a700
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4c44fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x298]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
jmp 0x4c453b
call fcn.0051ec14
mov eax, dword [eax]
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x298]
push str.Rename_temp_file__s_to__s._n
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x298]
mov ecx, edi
push edx
call fcn.004c2cc0
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov ecx, dword [0x5ba8a4]
push ecx
call fcn.0051f193
add esp, 4
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 8