Function at 0x416cd0
Capabilities:
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x485ab5
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x29c]
mov eax, dword [esp + 0x2a4]
mov ebp, dword [esp + 0x2a0]
push str.Wow64DisableWow64FsRedirection
mov edi, edx
xor ebx, ebx
push str.kernel32
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x44], eax
cmp eax, ebx
je 0x416d5e
lea edx, [esp + 0x48]
push edx
call eax
mov dword [esp + 0x294], ebx
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416d7f
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x294], 1
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416db1
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x294], 2
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416de3
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x294], 3
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416e15
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x294], 4
call fcn.004440b8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416e47
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
push 1
lea ecx, [esp + 0x30]
push ecx
push ecx
mov byte [esp + 0x2a0], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push str.strDstDir
call fcn.00401ed0
push esi
mov ebx, ebp
call fcn.0042e350
cmp dword [0x4a95e8], 0
mov dword [esp + 0x1c], eax
jne 0x416eb5
push 0x60
call fcn.00443d07
add esp, 4
test eax, eax
je 0x416ea3
mov esi, eax
call fcn.00437cc0
jmp 0x416ea5
xor eax, eax
mov esi, dword [esp + 0x29c]
mov edi, dword [esp + 0x38]
mov dword [0x4a95e8], eax
mov eax, 0x5c
lea ebx, [esp + 0x2c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
cmp dword [esp + 0x1c], 0
jne 0x416fd7
mov edi, 0xa0000001
lea esi, [esp + 0x24]
call fcn.00414000
mov byte [esp + 0x294], 6
mov ecx, dword [esp + 0x38]
push eax
call fcn.00407570
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x294], 4
mov eax, dword [esp + 0x3c]
mov dword [ecx], 0
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416f56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 3
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 0x416f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 1
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 0x41780c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41780c
push 1
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x491520
call fcn.00401ed0
push esi
mov ebx, ebp
call fcn.0042e350
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x417012
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], ebx
jne 0x41710c
mov dword [esp + 0x1c], ebx
mov edi, 0xa0000001
lea esi, [esp + 0x24]
call fcn.00414000
mov ecx, dword [esp + 0x38]
push eax
mov byte [esp + 0x298], 7
call fcn.00407570
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41705a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x294], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [ecx], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417088
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 3
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 0x4170b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 1
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 0x417100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], bl
jmp 0x417814
push 1
lea ecx, [esp + 0x40]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.iSystemBits
call fcn.00401ed0
push esi
mov ebx, ebp
call fcn.0042e350
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41714f
mov edi, 0xa0000001
lea esi, [esp + 0x24]
call fcn.00414000
mov byte [esp + 0x294], 8
jmp 0x416ef2
mov edi, dword [esp + 0x3c]
push edi
call fcn.00461856
add esp, 4
cmp dword [0x4a657c], 0
mov esi, eax
je 0x4171ae
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4171a4
lea ecx, [esp + 0x58]
push ecx
call eax
mov ax, word [esp + 0x58]
cmp ax, 9
je 0x41719a
cmp ax, 6
jne 0x4171a4
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
test esi, esi
je 0x4171c0
cmp esi, 1
jne 0x417228
cmp dword [0x4a99d4], 0
jne 0x417236
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0040d8d0
add esp, 0xc
mov byte [esp + 0x294], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41725c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41724e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41724e
push eax
call fcn.00401fe0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41721f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x41725c
cmp esi, 2
jne 0x417236
cmp dword [0x4a99d4], 0
jne 0x4171c0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x294], 4
lea eax, [edi - 0x10]
jmp 0x416f3d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401da0
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x38], esp
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x4172b6
cmp eax, dword [ebx]
jne 0x4172b6
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4172f2
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x4172cf
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x38]
call fcn.0043d140
add esp, 4
push eax
mov byte [esp + 0x298], 0xa
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
jl 0x417336
cmp eax, dword [ebx]
jne 0x417336
mov esi, ebx
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x417372
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41734f
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x58]
call fcn.0043d220
add esp, 4
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x2a0], 0xb
call fcn.0040d8d0
add esp, 0xc
mov byte [esp + 0x294], 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x20]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4173f8
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4173ea
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4173ea
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4173e1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x4173f8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401da0
mov byte [esp + 0x294], 0xb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 0xa
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x44], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x41749a
cmp eax, dword [ebx]
jne 0x41749a
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4174d6
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x4174b3
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
lea esi, [esp + 0x38]
call fcn.0043d450
add esp, 4
mov byte [esp + 0x294], 0xd
mov ecx, dword [eax]
mov esi, dword [esp + 0x28]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x417546
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x417538
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x417538
push eax
call fcn.00401fe0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41752f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x28], ebp
jmp 0x417546
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00401da0
mov byte [esp + 0x294], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41756e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x44], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x417598
cmp eax, dword [ebx]
jne 0x417598
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4175d4
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x4175b1
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
call fcn.0043d580
add esp, 4
test eax, eax
je 0x4176d8
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41760a
and eax, 0xfffffffe
jne 0x417602
mov eax, 0x80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call ebp
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4176d0
push 0x206
push eax
lea ecx, [esp + 0x86]
push ecx
mov word [esp + 0x88], ax
call fcn.00464a00
mov eax, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
push esi
push 0x4914c8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4176d0
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea ecx, [esp + 0x80]
push ecx
push edx
call edi
test eax, eax
lea eax, [esp + 0x7c]
push eax
jne 0x4176a1
call ebp
mov ecx, dword [esp + 0x18]
push 4
push esi
push ecx
call edi
mov edx, dword [esp + 0x54]
mov esi, eax
mov dword [esp + 0x1c], esi
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4176e0
call ebp
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4176d0
push 2
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push esi
lea edx, [esp + 0x84]
push edx
call edi
mov esi, eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4176e0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
test esi, esi
jne 0x41774c
mov ebp, dword [esp + 0x29c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
mov edi, eax
lea esi, [esp + 0x30]
mov dword [edx], ecx
call fcn.00414000
mov byte [esp + 0x294], 0xe
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x2c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00403800
mov byte [esp + 0x2a4], 5
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417773
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x29c]
mov dword [ecx], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x38]
push ecx
push eax
push edx
call fcn.00403800
add esp, 0xc
mov byte [esp + 0x294], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41779b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 3
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 0x4177c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4177eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x294], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41780c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x294], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x294], 0xffffffff
cmp dword [esp + 0x44], 0
je 0x417868
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417868
mov ecx, dword [esp + 0x48]
push ecx
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00461706
add esp, 0x284
ret