Function at 0x40d2a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4976d9
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4c7838]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c7838]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov esi, dword [esp + 0x188]
mov edi, dword [esp + 0x184]
mov ebp, dword [esp + 0x190]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18c]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x180], 0
call fcn.004019f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.0040b3c0
mov eax, dword [eax]
push 0x49ff28
push eax
call fcn.0046a20a
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d36a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40d37e
push 1
push 0x49ff28
lea ecx, [esp + 0x20]
call fcn.0040b4c0
push 3
push 0x49ff30
lea ecx, [esp + 0x20]
call fcn.0040b4c0
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x40d3c4
lea eax, [ebx - 0x10]
mov byte [esp + 0x17c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d5ae
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1009
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40d3e4
mov esi, dword [esp + 0x2c]
test byte [esp + 0x30], 0x10
je 0x40d564
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x18]
call fcn.00408b30
mov eax, dword [esp + 0x14]
push 0x49ff20
push eax
mov byte [esp + 0x184], 2
call fcn.0046a20a
add esp, 8
test eax, eax
setne al
test al, al
je 0x40d53a
mov ecx, dword [esp + 0x14]
push 0x49ff2c
push ecx
call fcn.0046a20a
add esp, 8
test eax, eax
setne al
test al, al
je 0x40d53a
cmp dword [esp + 0x30], 0x16
je 0x40d53a
push 0xffff0003
push ebp
push 0
push 0
push 0
push 6
push 1
lea edx, [esp + 0x78]
push edx
push 0x23
mov ecx, edi
call fcn.0041d807
mov esi, eax
mov eax, dword [esp + 0x18c]
add eax, 0xfffffff0
push eax
call fcn.004019f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 3
call fcn.0040b3c0
mov eax, dword [eax]
push 0x49ff28
push eax
call fcn.0046a20a
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40d4e7
push 0x49ff28
lea ecx, [esp + 0x20]
call fcn.0040ca80
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d4f0
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040b4c0
mov ecx, dword [esp + 0x20]
push esi
call fcn.0040a0c0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d573
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0040cf60
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d3e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x17c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.00469d23
add esp, 0x16c
ret 0x10