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

Disassembly:
push 0xffffffffffffffff
push 0x877445
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x2c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x2f0]
mov eax, dword [esp + 0x2ec]
mov ebx, dword [esp + 0x2f8]
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x64], ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x80004005
call fcn.004a8f10
xor esi, esi
mov dword [esp + 0x2e4], esi
call fcn.007cff5d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x5d3718
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov ecx, ebx
call fcn.004afe70
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0xa
push 0x24c
lea ecx, [esp + 0x90]
push esi
push ecx
mov byte [esp + 0x2f0], 2
mov dword [esp + 0x94], esi
call fcn.00802690
add esp, 0xc
push 0x401fc4
push 0x430c08
lea ecx, [esp + 0x24]
call fcn.004aa070
push 0x401fc4
push 0x430bf4
lea ecx, [esp + 0x24]
call fcn.004aa070
push 6
push 0x40e364
lea ecx, [esp + 0x24]
call fcn.004a9f20
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push 0x430bd0
push eax
call fcn.004aa600
mov edx, dword [esp + 0x38]
add esp, 0xc
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x68], eax
cmp eax, 0xffffffff
je 0x5d3c7f
xor ebp, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x5d3801
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2e4], 3
lea esp, [esp]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xb4]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x430bb4
push eax
call fcn.004aa600
add esp, 0x10
cmp dword [esp + 0x38], ebp
jbe 0x5d389c
mov esi, dword [esp + 0x30]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x5d370e
mov ecx, dword [esi]
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5d387d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword [esi], ecx
dec dword [esp + 0x38]
mov dword [esp + 0x40], esi
jne 0x5d3896
lea ecx, [esp + 0x30]
call fcn.004afe70
cmp dword [esp + 0x38], ebp
ja 0x5d3845
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
cmp eax, ebp
je 0x5d38c5
mov esi, dword [eax]
push eax
call fcn.00803053
add esp, 4
mov eax, esi
cmp esi, ebp
jne 0x5d38b0
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x54], esp
mov ebx, esp
call eax
cmp dword [esi - 4], ebp
lea ecx, [esi - 4]
jl 0x5d38ff
cmp eax, dword [esi - 0x10]
jne 0x5d38ff
lea ebp, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x5d3937
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x5d3c41
mov eax, dword [esi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov ecx, dword [esp + 0x68]
add ebp, 0x10
mov dword [ebx], ebp
call fcn.005d30c0
test eax, eax
jne 0x5d3c23
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
cmp ebx, dword [esp + 0x50]
jl 0x5d3b15
jg 0x5d396b
cmp ebp, dword [esp + 0x4c]
jbe 0x5d3b15
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
call fcn.004aa540
mov ecx, edi
call fcn.004afe70
mov eax, dword [esp + 0x30]
mov esi, eax
test eax, eax
je 0x5d3b0d
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x5d370e
cmp dword [edi + 0x10], 0
mov edx, dword [edi + 4]
mov ebx, esi
mov esi, dword [esi]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x48], edx
jne 0x5d3a24
mov eax, dword [edi + 0x14]
xor ecx, ecx
shld ecx, eax, 5
shl eax, 5
test ecx, ecx
ja 0x5d3c46
jb 0x5d39dd
cmp eax, 0xffffffff
ja 0x5d3c46
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 4
jb 0x5d3c46
add eax, 4
push eax
call fcn.00802fbf
add esp, 4
test eax, eax
je 0x5d3c46
mov edx, dword [edi + 0xc]
mov dword [eax], edx
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x14]
mov edx, ecx
shl edx, 5
dec ecx
lea eax, [edx + eax - 0x1c]
js 0x5d3a24
mov edx, dword [edi + 0x10]
mov dword [eax], edx
mov dword [edi + 0x10], eax
sub eax, 0x20
dec ecx
jns 0x5d3a16
mov ebp, dword [edi + 0x10]
mov eax, dword [ebp]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], ebp
mov byte [esp + 0x2e4], 4
test ebp, ebp
je 0x5d3acd
mov esi, dword [ebx + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x5d3a6f
cmp eax, dword [esi - 0x10]
jne 0x5d3a6f
lea ebx, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x5d3aa7
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x5d3c41
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x58]
add ebx, 0x10
mov dword [ebp + 8], ebx
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov ecx, dword [eax + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp + 0x1c], edx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x10], eax
mov dword [ebp + 4], ecx
mov dword [ebp], 0
mov eax, dword [edi + 4]
inc dword [edi + 8]
mov byte [esp + 0x2e4], 3
test eax, eax
je 0x5d3af8
mov dword [eax], ebp
jmp 0x5d3afa
mov dword [edi], ebp
mov dword [edi + 4], ebp
test esi, esi
jne 0x5d3996
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], 0
test ebx, ebx
jl 0x5d3c23
jg 0x5d3b2b
cmp ebp, 0x6b49d200
jb 0x5d3c23
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5d370e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x2e8], 5
call fcn.004aa540
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ebp, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.004d0120
mov esi, dword [esi + 0x10]
mov ebx, dword [esi]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], esi
mov byte [esp + 0x2e4], 6
test esi, esi
je 0x5d3bd8
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
push eax
call fcn.004a9b50
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebx
mov dword [esi + 4], ebp
mov dword [esi], 0
mov ecx, dword [eax + 4]
inc dword [eax + 8]
test ecx, ecx
je 0x5d3bf6
mov dword [ecx], esi
jmp 0x5d3bf8
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5d3c23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x88]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5d3c50
xor ebp, ebp
jmp 0x5d3820
call fcn.004a8580
push 0x8007000e
call fcn.004a8210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5d3c7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
cmp eax, 1
jbe 0x5d3daf
mov dword [esp + 0x14], 0
test eax, eax
je 0x5d3daf
mov eax, dword [edx + 8]
xor ebp, ebp
dec eax
je 0x5d3d9d
jmp 0x5d3cb0
cmp ebp, dword [edx + 8]
jb 0x5d3cb9
xor eax, eax
jmp 0x5d3cca
mov eax, dword [edx]
test eax, eax
je 0x5d3cca
test ebp, ebp
je 0x5d3cca
mov ecx, ebp
dec ecx
mov eax, dword [eax]
jne 0x5d3cc5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5d370e
mov edi, dword [eax + 0x18]
sub edi, dword [eax + 0x10]
mov esi, dword [eax + 0x1c]
sbb esi, dword [eax + 0x14]
lea ebx, [ebp + 1]
cmp ebx, dword [edx + 8]
jb 0x5d3cf1
xor eax, eax
jmp 0x5d3d05
mov eax, dword [edx]
test eax, eax
je 0x5d3d05
test ebx, ebx
je 0x5d3d05
mov ecx, ebx
lea ecx, [ecx]
dec ecx
mov eax, dword [eax]
jne 0x5d3d00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5d370e
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
sbb ecx, dword [eax + 0x14]
cmp esi, ecx
jg 0x5d3d87
jl 0x5d3d2a
cmp edi, edx
jae 0x5d3d87
mov esi, dword [esp + 0x18]
cmp ebx, dword [esi + 8]
jb 0x5d3d37
xor edx, edx
jmp 0x5d3d4e
mov eax, dword [esi]
test eax, eax
jne 0x5d3d41
xor edx, edx
jmp 0x5d3d4e
test ebx, ebx
je 0x5d3d4c
mov ecx, ebx
dec ecx
mov eax, dword [eax]
jne 0x5d3d47
mov edx, eax
cmp ebp, dword [esi + 8]
jb 0x5d3d60
xor eax, eax
push edx
push eax
mov ecx, esi
call fcn.005d2db0
jmp 0x5d3d8b
mov eax, dword [esi]
test eax, eax
jne 0x5d3d71
push edx
push eax
mov ecx, esi
call fcn.005d2db0
jmp 0x5d3d8b
test ebp, ebp
je 0x5d3d7c
mov ecx, ebp
dec ecx
mov eax, dword [eax]
jne 0x5d3d77
push edx
push eax
mov ecx, esi
call fcn.005d2db0
jmp 0x5d3d8b
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov ebp, ebx
dec eax
cmp ebp, eax
jb 0x5d3cb0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edx + 8]
jb 0x5d3c9f
lea ecx, [esp + 0x30]
call fcn.004afe70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5d3de0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5d3e0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c4]
xor ecx, esp
call fcn.0080262b
add esp, 0x2d4
ret 0x10