Function at 0x49a980
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x589e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x904
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x900], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x918]
mov dword fs:[0], eax
xor ebp, ebp
xor eax, eax
mov word [esp + 0x94], ax
mov edi, edx
mov ebx, 7
mov eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebp
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x49a9e5
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x98]
call fcn.00406150
mov dword [esp + 0x920], ebp
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49aa23
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x7c]
call fcn.00406150
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
mov byte [esp + 0x924], 1
call fcn.004924e0
add esp, 4
lea eax, [esp + 0x3c]
mov byte [esp + 0x920], 2
call fcn.00492630
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call fcn.004923c0
add esp, 4
push 0xffffffffffffffff
push ebp
push eax
mov eax, esi
mov byte [esp + 0x92c], 3
call fcn.00405d70
mov ebx, 8
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaa9
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.005273b8
add esp, 4
push 3
push 0x5d30a0
lea eax, [esp + 0x98]
call fcn.00404070
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x49aad3
lea eax, [esp + 0x94]
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x49b003
nop
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ebp, ebp
cmp eax, ebp
je 0x49b003
xor edx, edx
lea eax, [esp + 0xd8]
mov word [esp + 0x5c], dx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49ab30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x60]
call fcn.00406150
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x924], 4
call fcn.004924e0
add esp, 4
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x92c], 5
call fcn.00405870
mov byte [esp + 0x920], 4
cmp dword [esp + 0x38], 0x10
jb 0x49ab99
mov edx, dword [esp + 0x24]
push edx
call fcn.005273b8
add esp, 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x49ad3b
mov esi, edx
mov dword [esp + 0x14], esi
cmp edx, ebp
je 0x49abd8
mov eax, edx
cmp ecx, 0x10
jae 0x49abbf
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x49abd8
mov eax, edx
cmp ecx, 0x10
jae 0x49abce
lea eax, [esp + 0x40]
mov edi, dword [esp + 0x50]
add eax, edi
cmp esi, eax
jbe 0x49abe9
call fcn.00527d8a
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov eax, edx
cmp ecx, 0x10
jae 0x49abf4
lea eax, [esp + 0x40]
lea ebp, [edi + eax]
test ebp, ebp
je 0x49ac1b
mov eax, edx
cmp ecx, 0x10
jae 0x49ac06
lea eax, [esp + 0x40]
cmp eax, ebp
ja 0x49ac1b
mov eax, edx
cmp ecx, 0x10
jae 0x49ac15
lea eax, [esp + 0x40]
add eax, edi
cmp ebp, eax
jbe 0x49ac2c
call fcn.00527d8a
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x49ad48
mov esi, edx
test edx, edx
je 0x49ac5b
mov eax, edx
cmp ecx, 0x10
jae 0x49ac46
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x49ac5b
mov eax, edx
cmp ecx, 0x10
jae 0x49ac55
lea eax, [esp + 0x40]
add eax, edi
cmp esi, eax
jbe 0x49ac6c
call fcn.00527d8a
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov eax, ebp
lea ebx, [esp + 0x3c]
sub eax, esi
cmp ebx, 0xfffffffc
je 0x49aca6
cmp ecx, 0x10
mov ecx, edx
jae 0x49ac84
lea ecx, [esp + 0x40]
mov ebx, dword [esp + 0x14]
add eax, ebx
add ecx, edi
cmp eax, ecx
ja 0x49aca1
cmp dword [esp + 0x54], 0x10
mov ecx, edx
jae 0x49ac9d
lea ecx, [esp + 0x40]
cmp eax, ecx
jae 0x49aca6
call fcn.00527d8a
mov ebx, 8
cmp esi, ebp
je 0x49acc9
mov edi, dword [esp + 0x14]
sub edi, esi
movsx ecx, byte [esi]
push ecx
call fcn.0052a519
mov byte [edi + esi], al
inc esi
add esp, 4
cmp esi, ebp
jne 0x49acb5
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x40]
call fcn.004923c0
add esp, 4
push 0xffffffffffffffff
xor ebp, ebp
push ebp
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x92c], 6
call fcn.00405d70
mov byte [esp + 0x920], 4
cmp dword [esp + 0x38], ebx
jb 0x49ad0c
mov eax, dword [esp + 0x24]
push eax
call fcn.005273b8
add esp, 4
cmp word [esp + 0xd8], 0x2e
jne 0x49ad51
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaf0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.005273b8
add esp, 4
jmp 0x49aaf0
lea esi, [esp + 0x40]
mov dword [esp + 0x14], esi
jmp 0x49abb4
lea esi, [esp + 0x40]
jmp 0x49ac3b
mov ax, word [esp + 0xda]
cmp ax, bp
jne 0x49ad82
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaf0
mov edx, dword [esp + 0x5c]
push edx
call fcn.005273b8
add esp, 4
jmp 0x49aaf0
cmp ax, 0x2e
jne 0x49adb6
cmp word [esp + 0xdc], bp
jne 0x49adb6
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaf0
mov eax, dword [esp + 0x5c]
push eax
call fcn.005273b8
add esp, 4
jmp 0x49aaf0
test byte [esp + 0xac], 0x10
je 0x49ade4
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaf0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.005273b8
add esp, 4
jmp 0x49aaf0
push 0x206
lea eax, [esp + 0x712]
xor edx, edx
push ebp
push eax
mov word [esp + 0x718], dx
call fcn.0052e300
add esp, 0xc
push 0x206
lea edx, [esp + 0x50a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x510], cx
call fcn.0052e300
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp dword [esp + 0x70], ebx
jae 0x49ae32
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x508]
push 0x5d234c
push eax
call fcn.00527adc
add esp, 0xc
lea ecx, [esp + 0x504]
push 0x2e
push ecx
call fcn.00527ab0
add esp, 8
cmp eax, ebp
je 0x49ae7f
lea edx, [esp + 0x70c]
sub edx, eax
jmp 0x49ae70
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x49ae70
mov ecx, str..lnk
lea eax, [esp + 0x70c]
jmp 0x49ae90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49aeb6
cmp dx, bp
je 0x49aeb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49aeb6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x49ae90
xor eax, eax
jmp 0x49aebb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x49aee3
mov byte [esp + 0x920], 2
cmp dword [esp + 0x70], ebx
jb 0x49aaf0
mov edx, dword [esp + 0x5c]
push edx
call fcn.005273b8
add esp, 4
jmp 0x49aaf0
push 0x206
lea ecx, [esp + 0x302]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x308], ax
call fcn.0052e300
add esp, 0xc
lea edi, [esp + 0x2fc]
lea esi, [esp + 0x504]
call fcn.00492050
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], ebx
jae 0x49af27
lea eax, [esp + 0x78]
push eax
lea edx, [esp + 0x300]
push edx
push str.Lnk___s____s_
call fcn.004936d0
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x2fc]
push eax
push ecx
call fcn.00527a1d
add esp, 8
test eax, eax
je 0x49af6c
lea ecx, [esp + 0x58]
mov byte [esp + 0x920], 2
call fcn.00406300
jmp 0x49aaf0
cmp dword [esp + 0x70], ebx
jb 0x49af7f
mov edx, dword [esp + 0x5c]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
cmp dword [esp + 0x54], 0x10
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], ax
jb 0x49afa7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005273b8
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
cmp dword [esp + 0x8c], ebx
jb 0x49afce
mov edx, dword [esp + 0x78]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], ax
cmp dword [esp + 0xa8], ebx
jb 0x49affc
mov ecx, dword [esp + 0x94]
push ecx
call fcn.005273b8
add esp, 4
mov eax, 2
jmp 0x49b072
cmp dword [esp + 0x54], 0x10
jb 0x49b017
mov edx, dword [esp + 0x40]
push edx
call fcn.005273b8
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
cmp dword [esp + 0x8c], ebx
jb 0x49b03e
mov eax, dword [esp + 0x78]
push eax
call fcn.005273b8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], cx
cmp dword [esp + 0xa8], ebx
jb 0x49b070
mov edx, dword [esp + 0x94]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x918]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.005273c3
add esp, 0x910
ret