Function at 0x407740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9a94
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0xae8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8630]
xor eax, esp
push eax
lea eax, [esp + 0xb00]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
call fcn.00407bb0
lea eax, [esp + 0x7c]
push eax
call fcn.0041ff40
xor ebx, ebx
lea esi, [esp + 0x7c]
mov dword [esp + 0xb08], ebx
call fcn.00406750
test al, al
jne 0x4077d1
cmp byte [esp + 0xa6], bl
jne 0x4077ca
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x4077ca
push eax
call fcn.0048a268
add esp, 4
xor al, al
jmp 0x407a2d
push 0x7fe
lea eax, [esp + 0x302]
xor edx, edx
push ebx
push eax
mov word [esp + 0x308], dx
call fcn.0048aa40
add esp, 0xc
lea eax, [esp + 0x80]
cmp byte [esp + 0xa6], bl
jne 0x407808
mov eax, dword [esp + 0xa0]
add eax, 4
push eax
push str._s.
lea edx, [esp + 0x304]
call fcn.00407d10
push 0x24c
lea ecx, [esp + 0xbc]
push ebx
push ecx
mov dword [esp + 0xc0], ebx
call fcn.0048aa40
add esp, 0x14
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407a07
push 0x2c
lea ecx, [esp + 0x24]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call fcn.0048aa40
add esp, 0xc
mov ecx, 0x4b2f64
lea eax, [esp + 0xd8]
jmp 0x407880
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4078a6
cmp dx, bx
je 0x4078a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4078a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x407880
xor eax, eax
jmp 0x4078ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4079e9
mov ecx, 0x4b2f68
lea eax, [esp + 0xd8]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4078e6
cmp dx, bx
je 0x4078e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4078e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4078c0
xor eax, eax
jmp 0x4078eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4079e9
lea eax, [esp + 0x80]
cmp byte [esp + 0xa6], bl
jne 0x40790a
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0xd8]
push edx
add eax, 4
push eax
push 0x4b2f70
lea edx, [esp + 0x308]
call fcn.00407d10
add esp, 0xc
cmp eax, 0xffffffff
je 0x4079e9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x300]
push ecx
call fcn.00489a11
add esp, 8
test eax, eax
jne 0x4079e9
test dword [esp + 0x22], 0x4000
jne 0x4079e9
push 0x6c
call fcn.00489136
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0xb08], 1
cmp eax, ebx
je 0x407982
push eax
call fcn.00407420
mov esi, eax
jmp 0x407984
xor esi, esi
mov byte [esp + 0xb08], bl
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x4079e9
lea edx, [esp + 0x7c]
push edx
lea edi, [esp + 0xdc]
lea ecx, [esp + 0x50]
call fcn.00420a50
lea ecx, [esi + 0x3c]
mov byte [esp + 0xb08], 2
call fcn.004209f0
lea eax, [esp + 0x4c]
mov byte [esp + 0xb08], bl
call fcn.00402420
mov ecx, esi
call fcn.00407490
test al, al
je 0x4079e4
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00407ca0
xor ebx, ebx
jmp 0x4079e9
call fcn.004030d0
lea eax, [esp + 0xac]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40786f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0xa6], bl
jne 0x407a2b
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x407a2b
push eax
call fcn.0048a268
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb00]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xae8]
xor ecx, esp
call fcn.00488f53
add esp, 0xaf8
ret