Function at 0x417c20
Capabilities:
Get session user name
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4907c4
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x12c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
mov dword [esp + 0x34], esi
call edi
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x20]
push eax
push ebx
push 0x80
push ecx
call edi
mov ecx, esi
call fcn.00457405
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00437800
mov eax, dword [eax]
add esp, 4
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ExtractIconExA]
push 0xffffffffffffffff
push eax
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ce9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x417d30
lea ecx, [esp + 0x10]
push ecx
call fcn.00437800
mov eax, dword [eax]
add esp, 4
push 1
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x54]
push ecx
push 0
push eax
call ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417d30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x417d46
mov ecx, dword [esi + 0x20]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x417d5c
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
push 0x49c9b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4bb18c], eax
mov eax, dword [esi + 0x20]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 0x20]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x4bb18c]
test eax, eax
mov edi, dword [esi + 0x20]
je 0x417db2
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417db2
push 2
push 0xff
push 0
push edi
call eax
mov edx, dword [0x4bb1d8]
mov eax, dword [edx + 0xb8]
push esi
mov ecx, 0x4bb1d8
call eax
mov ecx, dword [0x4bb2a0]
push ecx
lea edi, [esp + 0x14]
call fcn.00436d80
push ecx
mov dword [esp + 0x494], 0
mov edi, esp
mov dword [esp + 0x40], esp
push 0x49adb9
mov ebx, 0x4bb3c8
call fcn.00437400
call fcn.00422b50
mov bl, al
mov dword [esp + 0x494], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x23], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov edx, dword [0x4bb2a0]
je 0x417f30
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004365c0
lea ecx, [esp + 0x14]
push str.This_version_of
push ecx
mov ecx, eax
mov dword [esp + 0x498], 1
call fcn.00409020
push str._is_registered.
push eax
lea edx, [esp + 0x20]
mov bl, 2
push edx
mov byte [esp + 0x4a4], bl
call fcn.00408f40
add esp, 0x14
mov byte [esp + 0x490], 3
mov eax, dword [eax]
push eax
mov eax, dword [0x4bb2a8]
mov edx, dword [eax + 4]
mov ecx, 0x4bb2a8
call edx
mov byte [esp + 0x490], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ec2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x490], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp dword [0x4bb3c0], ebx
push ebx
je 0x418035
mov ecx, esi
call fcn.0044e48d
jmp 0x4180e4
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004365c0
lea ecx, [esp + 0x10]
push str.This_version_of
push ecx
mov ecx, eax
mov dword [esp + 0x498], 4
call fcn.00409020
push str._is_not_registered.
push eax
lea edx, [esp + 0x28]
mov bl, 5
push edx
mov byte [esp + 0x4a4], bl
call fcn.00408f40
add esp, 0x14
mov byte [esp + 0x490], 6
mov eax, dword [eax]
push eax
mov eax, dword [0x4bb2a8]
mov edx, dword [eax + 4]
mov ecx, 0x4bb2a8
call edx
mov byte [esp + 0x490], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x490], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x5e]
mov eax, dword [esp + 0x5a]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [0x4bb2a0]
push eax
push ecx
push edx
call fcn.00441cf0
add esp, 0x10
jmp 0x4180e4
call fcn.004705e8
add esp, 4
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4bb3c4]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x44]
push edx
push ebx
push str.Updated
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x14], ebx
je 0x4180c0
mov edx, dword [0x4bb3c4]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push ebx
add edi, 0x9e3400
push str.UpdateTime
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edx
call edi
mov ecx, dword [0x4bb3c4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push ebx
push str.Updated
push ecx
mov dword [esp + 0x30], ebx
call edi
jmp 0x4180e4
push str.UpdateTime
push 0x4bb3c4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00406560
cmp edi, dword [esp + 0x10]
jle 0x4180e4
mov byte [0x4bb3d8], 1
mov edx, dword [0x4bb3b0]
mov ecx, dword [0x4bb2a4]
push edx
push str.DirAppPrivateData
call fcn.00444ec0
mov eax, dword [0x4bb2a0]
push eax
lea edi, [esp + 0x20]
call fcn.00436700
mov ebx, eax
mov dword [esp + 0x490], 7
mov ecx, dword [0x4bb2a0]
push ecx
lea edi, [esp + 0x2c]
call fcn.00436700
lea edx, [esp + 0x54]
push str.SOFTWARE_
push edx
mov ecx, eax
mov byte [esp + 0x498], 8
call fcn.00409020
push 0x49aa08
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x4a4], 9
call fcn.00408f40
add esp, 0x14
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x49c], 0xa
call fcn.00408e80
add esp, 0xc
push str.PostIgnores
push eax
lea edx, [esp + 0x20]
mov bl, 0xb
push edx
mov byte [esp + 0x49c], bl
call fcn.00408f40
add esp, 0xc
mov byte [esp + 0x490], 0xc
mov eax, dword [eax]
mov ecx, dword [0x4bb2a4]
push eax
push str.PostIgnorePath
call fcn.00444ec0
mov byte [esp + 0x490], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4181d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 0xa
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4181f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 8
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418248
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 7
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418270
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x490], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41829b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x50], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [0x4bb2a4]
push str.UserName
mov byte [esp + eax + 0x84], 0
call fcn.00444ec0
push 0x49adb9
lea edi, [esp + 0x48]
mov ebx, 0x4bb3c8
call fcn.00437400
mov bl, byte [esp + 0x23]
xor edx, edx
test bl, bl
sete dl
test bl, bl
mov dword [esp + 0x490], 0xd
mov dword [0x4bb3d4], edx
je 0x418370
push 0xc
call fcn.0044ccf7
mov edi, eax
add esp, 4
test edi, edi
je 0x418345
call fcn.00457afe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418334
push 0x80004005
call fcn.00405140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 4], eax
jmp 0x418347
xor edi, edi
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x44]
mov dword [edi], ecx
lea ecx, [edi + 4]
push edx
call fcn.0040b2c0
push 0
push 0
push 0
push 0
push edi
push 0x417460
mov byte [edi + 8], 1
call fcn.004514b1
mov eax, dword [esi + 0x20]
push 0
push 0x5265c00
push 0x4002
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
mov ecx, esi
call fcn.00453b5b
push 0x218
call fcn.0044ccf7
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x490], 0xe
je 0x4183b5
push esi
push eax
call fcn.0041f540
jmp 0x4183b7
xor eax, eax
mov byte [esp + 0x490], 0xd
mov dword [esi + 0x10a4], eax
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0x134]
push 0x1001
call eax
mov ecx, dword [esi + 0x10a4]
push 0
call fcn.00453b5b
mov ecx, dword [esi + 0x10a4]
push ecx
call fcn.0041f820
push esi
call fcn.004199d0
test bl, bl
je 0x418578
cmp dword [0x4bb3d4], 0
jne 0x418578
mov eax, dword [0x4bb36c]
lea esi, [esp + 0x1c]
call fcn.004373a0
mov eax, dword [eax]
push eax
mov edi, 1
mov esi, 0x4bb3c8
call fcn.00437510
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x418574
xor edi, edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x490], 0xf
mov eax, dword [0x4bb36c]
lea esi, [esp + 0x28]
call fcn.00437360
push str.Settings
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x49c], 0x10
call fcn.00408f40
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x2001f
push edi
push eax
push SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4184ba
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x490], 0xf
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418505
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41854b
push str.UpdateTime
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call fcn.00406560
test eax, eax
je 0x418540
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x20]
push 0
push 0xbb8
push 0x4000
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test edi, edi
je 0x418565
push edi
call esi
xor edi, edi
jmp 0x418565
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
push 0
push 0xbb8
push 0x4000
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test edi, edi
mov byte [esp + 0x490], 0xd
je 0x418574
push edi
call esi
mov esi, dword [esp + 0x24]
mov ecx, dword [0x4bb2a0]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004365c0
mov byte [esp + 0x490], 0x11
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0044e3d0
mov byte [esp + 0x490], 0xd
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4185c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xfa8]
mov edi, esi
call fcn.00423590
call fcn.00418870
xor edi, edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x490], 0x12
call fcn.00457afe
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4185fd
push 0x80004005
call fcn.00405140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x494], 0x13
call fcn.00450044
mov ecx, dword [esp + 0x70]
push 0x58
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
push edi
push 0xa
push 0x4001
push edx
call ebx
mov dword [esp + 0x2c], vtable.ATL::CAccessToken.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x490], 0x15
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x3c]
push ecx
push 0x10000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41868c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x2c]
call eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
push str.SeBackupPrivilege
lea edx, [esp + 0x30]
push edx
call fcn.00417200
test al, al
jne 0x4186b3
mov eax, dword [0x4bb2a8]
mov edx, dword [eax + 4]
push str.Unable_to_gain_backup_privileges.
mov ecx, 0x4bb2a8
call edx
push str.SeRestorePrivilege
lea eax, [esp + 0x30]
push eax
call fcn.00417200
test al, al
jne 0x4186db
mov edx, dword [0x4bb2a8]
mov eax, dword [edx + 4]
push str.Unable_to_gain_restore_privileges.
mov ecx, 0x4bb2a8
call eax
cmp dword [0x4bb3b8], edi
push edi
je 0x4186f5
mov edx, dword [esi]
mov eax, dword [esi + 0x107c]
mov edx, dword [edx + 0x160]
push eax
jmp 0x418737
mov eax, dword [0x4bb384]
mov ecx, dword [eax + 0x254]
push edi
push pe_nt_image_headers32
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
push edi
jne 0x418728
mov edx, dword [esi]
mov eax, dword [esi + 0x1078]
mov edx, dword [edx + 0x160]
push eax
mov ecx, esi
call edx
push edi
jmp 0x41873d
mov eax, dword [esi]
mov ecx, dword [esi + 0x107c]
mov edx, dword [eax + 0x160]
push ecx
mov ecx, esi
call edx
push 1
lea ecx, [esi + 0x424]
call fcn.0044e4c9
cmp byte [0x4bb3d8], 0
je 0x418762
mov eax, dword [esi + 0x20]
push edi
push 0x9c4
push 0x4003
push eax
call ebx
mov ecx, dword [esp + 0x34]
cmp ecx, edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], vtable.ATL::CAccessToken.0
je 0x41878a
cmp eax, edi
je 0x418786
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], edi
cmp eax, edi
je 0x418799
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044cd27
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x38], edi
mov byte [esp + 0x490], 0x13
call fcn.00450098
mov byte [esp + 0x490], 0x12
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4187e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x490], 0xffffffff
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41880e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0046da06
mov esp, ebp
pop ebp
ret