Function at 0x4958d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5feae5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x304
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x32c]
mov eax, dword [ebp]
cmp eax, edi
mov dword [esp + 0x31c], edi
je 0x495923
mov ecx, dword [ebp + 4]
push ecx
push eax
call fcn.00437680
mov edx, dword [ebp]
push edx
call fcn.005bfb1a
add esp, 0xc
mov dword [ebp], edi
push 0x2f
push 0x5c
lea ecx, [esp + 0x32c]
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
call fcn.00432e60
mov esi, dword [esp + 0x324]
mov eax, dword [esi - 0xc]
xor bl, bl
cmp eax, edi
jl 0x495a08
push 0x616fa4
push esi
call fcn.005c0219
add esp, 8
cmp eax, edi
je 0x495a08
sub eax, esi
cmp eax, edi
jle 0x495a08
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x32c]
call fcn.00404540
push eax
lea ecx, [esp + 0x28]
push str.http
push ecx
mov byte [esp + 0x328], 1
call fcn.00426000
add esp, 0xc
push eax
lea ecx, [esp + 0x328]
mov byte [esp + 0x320], 2
call fcn.004044c0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4959d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4959ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x324]
mov bl, 1
push 0x2e
push esi
call fcn.005c282c
add esp, 8
cmp eax, edi
jne 0x495a1c
or edi, 0xffffffff
jmp 0x495a20
sub eax, esi
mov edi, eax
push 0x2f
push esi
call fcn.005c282c
add esp, 8
test eax, eax
jne 0x495a34
or eax, 0xffffffff
jmp 0x495a36
sub eax, esi
lea esi, [eax + 1]
cmp edi, esi
jge 0x495a3f
mov edi, esi
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x32c]
call fcn.0042ebc0
sub edi, esi
push edi
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x330]
mov byte [esp + 0x328], 3
call fcn.004042e0
push str..nooneexpectsthespanishinquisition
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x328], 4
call fcn.00418de0
add esp, 0xc
test bl, bl
mov byte [esp + 0x31c], 5
jne 0x4960be
mov edx, dword [esp + 0x328]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x4962e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jae 0x4960af
mov eax, dword [esp + 0x328]
mov edx, dword [eax]
lea eax, [edx + ecx*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00403f80
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 0x2f
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x324], 6
call fcn.00432e60
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
test edi, edi
jle 0x495b64
lea eax, [edi - 1]
test eax, eax
jl 0x4960af
cmp eax, edi
jg 0x4960af
cmp byte [eax + esi], 0x2f
je 0x495b64
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea ebx, [edi + 1]
sub eax, ebx
or eax, ecx
jge 0x495b48
push ebx
lea ecx, [esp + 0x1c]
call fcn.004019e0
mov esi, dword [esp + 0x18]
test ebx, ebx
mov byte [edi + esi], 0x2f
jl 0x4960af
cmp ebx, dword [esi - 8]
jg 0x4960af
mov dword [esi - 0xc], ebx
mov byte [ebx + esi], 0
cmp dword [esi - 0xc], 0
jle 0x495b84
push 0x3a
push esi
call fcn.005bf875
add esp, 8
test eax, eax
je 0x495b80
sub eax, esi
cmp eax, 0xffffffff
jne 0x495bed
cmp dword [esi - 0xc], 0
jl 0x495b9c
push 0x61cca8
push esi
call fcn.005c0219
add esp, 8
test eax, eax
je 0x495b9c
sub eax, esi
je 0x495bed
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00418d30
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 7
call fcn.004044c0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x619774
push 0x62716c
lea ecx, [esp + 0x20]
call fcn.0040f2e0
push 0x5c
push 0x2f
lea ecx, [esp + 0x20]
call fcn.00432e60
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
mov bl, 1
call fcn.00418d30
push 0x61da00
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x334], 8
call fcn.00418de0
mov eax, dword [eax]
add esp, 0x18
lea edx, [esp + 0x94]
push edx
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x50]
cmp esi, 0xffffffff
setne byte [esp + 0x17]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495c75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495c9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x49605e
jmp 0x495cb0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0xc0]
push ecx
push edx
call fcn.005c0d42
add esp, 8
test eax, eax
je 0x495ccb
xor bl, bl
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x495cb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x49605e
mov eax, 0x6c7260
mov dword [esp + 0x3c], eax
jmp 0x495d00
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], eax
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00418d30
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x334], 9
call fcn.00418de0
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x94]
push ecx
push eax
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495d78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49602f
jmp 0x495db0
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00418de0
add esp, 0xc
cmp dword [esp + 0x3c], 0x6c7260
mov byte [esp + 0x31c], 0xa
mov dword [esp + 0x4c], 0xffffffff
je 0x495e52
mov ecx, dword [esp + 0x20]
push 0x2e
push ecx
call fcn.005c282c
add esp, 8
test eax, eax
jne 0x495dfc
or eax, 0xffffffff
jmp 0x495e00
sub eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x28]
call fcn.0042ebc0
or dword [esp + 0x10], 1
push str..avi
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x328], 0xb
call fcn.00418de0
mov eax, dword [eax]
or dword [esp + 0x1c], 2
add esp, 0xc
lea ecx, [esp + 0x1d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x4c], eax
je 0x495e52
xor bl, bl
jmp 0x495e54
mov bl, 1
test byte [esp + 0x10], 2
je 0x495e80
mov eax, dword [esp + 0x40]
and dword [esp + 0x10], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495e80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x10], 1
mov dword [esp + 0x31c], 0xa
je 0x495eb7
mov eax, dword [esp + 0x34]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495eb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x495fcb
call fcn.005a2e2e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x496191
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x20]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
mov byte [esp + 0x31c], 0xc
je 0x495f96
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x495f84
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x495f84
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x495f2e
cmp eax, dword [esi]
jne 0x495f2e
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x495f64
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4960b9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.005bf888
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x495f7b
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x30], edi
jmp 0x495f96
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00401c00
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x32c]
lea eax, [esp + 0x30]
push eax
call fcn.00495840
lea eax, [edi - 0x10]
mov byte [esp + 0x31c], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495fcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x495fdb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496003
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x495db0
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov eax, dword [esp + 0x24]
add dword [esp + 0x38], 4
add eax, 1
cmp eax, 0xc
mov dword [esp + 0x24], eax
jl 0x495d10
mov eax, dword [esp + 0x3c]
add eax, 0x30
cmp eax, 0x6c72c0
mov dword [esp + 0x3c], eax
jl 0x495d00
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x31c], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x328]
mov eax, dword [edx + 4]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jb 0x495ac0
mov ebp, dword [esp + 0x32c]
jmp 0x4962e3
push 0x80070057
call fcn.00401480
jmp fcn.00401810
cmp esi, 7
jle 0x4962e3
push 0
push 0x100000
lea ecx, [esp + 0x6c]
call fcn.004941b0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x328], 0xd
call fcn.00418d30
push str..wse
push eax
lea eax, [esp + 0x48]
mov bl, 0xe
push eax
mov byte [esp + 0x334], bl
call fcn.00418de0
add esp, 0x18
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x320], 0xf
call fcn.00495470
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x31c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49614e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4962a7
call fcn.005a2e2e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49619b
push 0x80004005
call fcn.00401480
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x320], 0x10
call fcn.00494b90
test eax, eax
je 0x49627f
mov bl, 0x11
jmp 0x4961d0
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jl 0x496283
push 0x616f80
push ecx
call fcn.005c0219
add esp, 8
test eax, eax
je 0x49627f
mov ecx, dword [esp + 0x10]
sub eax, ecx
js 0x496283
call fcn.005a2e2e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x496191
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x320], bl
call fcn.004044c0
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00495840
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x68]
call fcn.00494b90
test eax, eax
jne 0x4961d0
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x10]
mov byte [esp + 0x31c], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4962a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4962d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x31c], 5
call fcn.005ae3e0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push 0x4327e0
push 4
push eax
push ecx
call fcn.005c14e0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x31c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49634a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x31c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x324]
add eax, 0xfffffff0
mov dword [esp + 0x31c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4963a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x310
ret