Function at 0x46c6f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b8c51
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
push 0x4c395c
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x30]
mov ebx, 1
push ecx
mov dword [esp + 0x298], ebx
call fcn.00401c00
lea edx, [esp + 0x2a4]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x2a4], 2
call fcn.00401b40
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c7a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], bl
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 0x46c7ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x46c7e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLastError__d_r_n
call fcn.00477b80
add esp, 8
jmp 0x46c8f1
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, edi
test byte [esp + 0x2c], 0x10
jne 0x46c8da
push 0x4c395c
lea ecx, [esp + 0x298]
push ecx
test ebp, ebp
je 0x46c866
lea edx, [esp + 0x1c]
push edx
call fcn.00401c00
lea ecx, [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x2a4], 3
call fcn.00401c00
mov eax, dword [eax]
push eax
call fcn.0046c5f0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c859
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x14]
jmp 0x46c8be
lea edx, [esp + 0x2c]
push edx
call fcn.00401c00
lea ecx, [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2a4], 4
call fcn.00401c00
mov eax, dword [eax]
push eax
call fcn.0046c670
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c8b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c8da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call edi
test eax, eax
jne 0x46c7f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x28c], 0
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c91c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28c], 0xffffffff
mov eax, dword [esp + 0x298]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c94a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x27c
ret 0xc