Function at 0x46c440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b368c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x29c]
mov dword [esp + 0x30], ecx
mov ecx, 0x4e3844
or esi, 0xffffffff
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x294], 0
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
test ebp, ebp
mov byte [esp + 0x294], 1
jne 0x46c4d0
xor eax, eax
jmp 0x46c4e4
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46c4d5
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x24]
call fcn.00401750
push ebp
push str._s.
lea edi, [esp + 0x24]
call fcn.00401250
mov ecx, dword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x46c6d4
nop
mov ecx, 0x4c1db4
lea eax, [esp + 0x60]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46c556
test dx, dx
je 0x46c552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46c556
add eax, 4
add ecx, 4
test dx, dx
jne 0x46c530
xor eax, eax
jmp 0x46c55b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c6b3
mov ecx, 0x4c8de0
lea eax, [esp + 0x60]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46c596
test dx, dx
je 0x46c592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46c596
add eax, 4
add ecx, 4
test dx, dx
jne 0x46c570
xor eax, eax
jmp 0x46c59b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c6b3
test byte [esp + 0x34], 0x10
je 0x46c60b
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x60]
push ecx
push ebp
push str._s_s_
lea edi, [esp + 0x30]
mov byte [esp + 0x2a0], 2
call fcn.00401250
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push esi
call fcn.0046c440
lea eax, [esi - 0x10]
mov byte [esp + 0x294], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46c6a7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
call fcn.00401400
lea edi, [esp + 0x18]
mov byte [esp + 0x294], 3
call fcn.0040a4f0
mov edi, dword [esp + 0x18]
xor esi, esi
mov edx, dword [esi + 0x4e1d90]
push edx
push edi
call fcn.00495aca
add esp, 8
test eax, eax
jne 0x46c68b
add esi, 4
cmp esi, 0x14
jb 0x46c630
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ebx, [esp + 0x28]
call fcn.0040e5b0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c68b
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 0x46c6b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46c520
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x294], 0
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 0x46c6fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x294], 0xffffffff
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 0x46c727
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.004935b6
add esp, 0x284
ret 4