Function at 0x409670
Capabilities:
Access peb ldr_data
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x457690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x4797a0]
xor eax, dword [esp + 0x18c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18c], eax
mov edi, ecx
call fcn.00448768
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
xor ebx, ebx
mov dword [esp + 0x198], ebx
call fcn.00448768
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], 1
call fcn.00449cb7
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push 0x45bcc4
lea esi, [edi + 0xec]
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x1a4], 3
call fcn.004025b0
push 0x45bcbc
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x1b0], 4
call fcn.004025b0
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 5
call fcn.00402540
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x198], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4098d5
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
push 0x400
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.kernel32.dll_FormatMessageA]
call fcn.00448768
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0xe000
mov byte [esp + 0x19c], 6
call fcn.0044993c
cmp eax, ebx
je 0x4097ff
push 0xe000
push eax
lea ecx, [esp + 0x1c]
call fcn.00405dc0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x10
push esi
push eax
mov ecx, edi
mov byte [esp + 0x1a4], 7
call fcn.00444f49
lea eax, [esi - 0x10]
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [esp + 0x2c]
call fcn.00409020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], 1
call fcn.00449cf6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4098a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x190]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x184]
xor ecx, dword [esp + 0x194]
pop ebp
pop ebx
add esp, 0x18c
jmp fcn.004311b5
mov eax, dword [esp + 0x4c]
test al, 0x16
jne 0x409977
test ah, 1
jne 0x409977
push 0x45bcc4
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.004025b0
push 0x45bcb8
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x1b0], 8
call fcn.004025b0
lea edx, [esp + 0x90]
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x1bc], 9
call fcn.004025b0
add esp, 0x24
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0xa
call fcn.00402540
lea ecx, [esp + 0x10]
call fcn.00402190
lea ecx, [esp + 0x24]
call fcn.00402190
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 3
call fcn.00402190
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.00409600
mov ebp, dword [esp + 0x20]
mov bl, 0xc
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
je 0x409ac9
mov eax, dword [esp + 0x4c]
test al, 0x16
jne 0x409980
test ah, 1
jne 0x409980
push 0x45bcc4
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.004025b0
push 0x45bcb8
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x1b0], 0xb
call fcn.004025b0
lea ecx, [esp + 0x90]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x1bc], bl
call fcn.004025b0
add esp, 0x24
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0xd
call fcn.00402540
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x198], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x198], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x20]
lea eax, [ebp - 0x10]
push eax
call fcn.00402250
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 0xe
call fcn.00409600
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x409980
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x409b96
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.kernel32.dll_FormatMessageA]
push 0xe000
lea ecx, [esp + 0x20]
call fcn.00408f60
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push 0x10
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x1a4], 0xf
call fcn.00444f49
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x198], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409b45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [esp + 0x2c]
call fcn.00409020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], 1
call fcn.00449cf6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x409879
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x409843
mov ebx, dword [esp + 0x34]
mov eax, ebx
sub eax, esi
sar eax, 2
test eax, eax
je 0x409843
push ecx
mov ecx, dword [edi + 0xf8]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
mov edx, dword [edi + 0xf4]
push ecx
mov eax, esp
mov dword [eax], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esp
add edi, 0xf0
push eax
mov ecx, edi
call fcn.00409130
cmp esi, ebx
je 0x409c03
push esi
mov ecx, edi
call fcn.00409600
add esi, 4
cmp esi, ebx
jne 0x409bf4
lea ecx, [esp + 0x2c]
call fcn.00409020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x198], 1
call fcn.00449cf6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x198], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4098aa