Function at 0x4a6810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x61bcf5
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 0x4a6863
mov ecx, dword [ebp + 4]
push ecx
push eax
call fcn.00445470
mov edx, dword [ebp]
push edx
call fcn.005d9100
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.00440a30
mov esi, dword [esp + 0x324]
mov eax, dword [esi - 0xc]
xor bl, bl
cmp eax, edi
jl 0x4a6948
push 0x630fc8
push esi
call fcn.005d9339
add esp, 8
cmp eax, edi
je 0x4a6948
sub eax, esi
cmp eax, edi
jle 0x4a6948
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x32c]
call fcn.00407f80
push eax
lea ecx, [esp + 0x28]
push str.http
push ecx
mov byte [esp + 0x328], 1
call fcn.0042f4c0
add esp, 0xc
push eax
lea ecx, [esp + 0x328]
mov byte [esp + 0x320], 2
call fcn.00403020
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 0x4a6917
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 0x4a693f
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.005d940c
add esp, 8
cmp eax, edi
jne 0x4a695c
or edi, 0xffffffff
jmp 0x4a6960
sub eax, esi
mov edi, eax
push 0x2f
push esi
call fcn.005d940c
add esp, 8
test eax, eax
jne 0x4a6974
or eax, 0xffffffff
jmp 0x4a6976
sub eax, esi
lea esi, [eax + 1]
cmp edi, esi
jge 0x4a697f
mov edi, esi
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x32c]
call fcn.004048d0
sub edi, esi
push edi
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x330]
mov byte [esp + 0x328], 3
call fcn.00402e40
push str..nooneexpectsthespanishinquisition
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x328], 4
call fcn.00403170
add esp, 0xc
test bl, bl
mov byte [esp + 0x31c], 5
jne 0x4a6ffe
mov edx, dword [esp + 0x328]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x4a7223
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jae 0x4a6fef
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.00402800
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.00440a30
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
test edi, edi
jle 0x4a6aa4
lea eax, [edi - 1]
test eax, eax
jl 0x4a6fef
cmp eax, edi
jg 0x4a6fef
cmp byte [eax + esi], 0x2f
je 0x4a6aa4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea ebx, [edi + 1]
sub eax, ebx
or eax, ecx
jge 0x4a6a88
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401990
mov esi, dword [esp + 0x18]
test ebx, ebx
mov byte [edi + esi], 0x2f
jl 0x4a6fef
cmp ebx, dword [esi - 8]
jg 0x4a6fef
mov dword [esi - 0xc], ebx
mov byte [ebx + esi], 0
cmp dword [esi - 0xc], 0
jle 0x4a6ac4
push 0x3a
push esi
call fcn.005d8f05
add esp, 8
test eax, eax
je 0x4a6ac0
sub eax, esi
cmp eax, 0xffffffff
jne 0x4a6b2d
cmp dword [esi - 0xc], 0
jl 0x4a6adc
push 0x63bd2c
push esi
call fcn.005d9339
add esp, 8
test eax, eax
je 0x4a6adc
sub eax, esi
je 0x4a6b2d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.004030c0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 7
call fcn.00403020
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 0x4a6b2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x631518
push 0x6463cc
lea ecx, [esp + 0x20]
call fcn.004166e0
push 0x5c
push 0x2f
lea ecx, [esp + 0x20]
call fcn.00440a30
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
mov bl, 1
call fcn.004030c0
push 0x63ca84
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x334], 8
call fcn.00403170
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 0x4a6bb5
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 0x4a6bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4a6f9e
jmp 0x4a6bf0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0xc0]
push ecx
push edx
call fcn.005db99d
add esp, 8
test eax, eax
je 0x4a6c0b
xor bl, bl
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a6bf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x4a6f9e
mov eax, 0x6ebd80
mov dword [esp + 0x3c], eax
jmp 0x4a6c40
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.004030c0
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.00403170
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 0x4a6cb8
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 0x4a6ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4a6f6f
jmp 0x4a6cf0
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00403170
add esp, 0xc
cmp dword [esp + 0x3c], 0x6ebd80
mov byte [esp + 0x31c], 0xa
mov dword [esp + 0x4c], 0xffffffff
je 0x4a6d92
mov ecx, dword [esp + 0x20]
push 0x2e
push ecx
call fcn.005d940c
add esp, 8
test eax, eax
jne 0x4a6d3c
or eax, 0xffffffff
jmp 0x4a6d40
sub eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x28]
call fcn.004048d0
or dword [esp + 0x10], 1
push str..avi
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x328], 0xb
call fcn.00403170
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 0x4a6d92
xor bl, bl
jmp 0x4a6d94
mov bl, 1
test byte [esp + 0x10], 2
je 0x4a6dc0
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 0x4a6dc0
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 0x4a6df7
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 0x4a6df7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4a6f0b
call fcn.005bc43d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4a70d1
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 0x4a6ed6
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x4a6ec4
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x4a6ec4
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4a6e6e
cmp eax, dword [esi]
jne 0x4a6e6e
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4a6ea4
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 0x4a6ff9
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.005d8f18
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x4a6ebb
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 0x4a6ed6
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00401bb0
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x32c]
lea eax, [esp + 0x30]
push eax
call fcn.004a6780
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 0x4a6f0b
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 0x4a6f1b
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 0x4a6f43
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 0x4a6cf0
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 0x4a6c50
mov eax, dword [esp + 0x3c]
add eax, 0x30
cmp eax, 0x6ebde0
mov dword [esp + 0x3c], eax
jl 0x4a6c40
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 0x4a6fc6
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 0x4a6a00
mov ebp, dword [esp + 0x32c]
jmp 0x4a7223
push 0x80070057
call fcn.00401470
jmp fcn.00418c70
cmp esi, 7
jle 0x4a7223
push 0
push 0x100000
lea ecx, [esp + 0x6c]
call fcn.004a50f0
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.004030c0
push str..wse
push eax
lea eax, [esp + 0x48]
mov bl, 0xe
push eax
mov byte [esp + 0x334], bl
call fcn.00403170
add esp, 0x18
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x320], 0xf
call fcn.004a63b0
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 0x4a708e
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 0x4a70b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x4a71e7
call fcn.005bc43d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4a70db
push 0x80004005
call fcn.00401470
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.004a5ad0
test eax, eax
je 0x4a71bf
mov bl, 0x11
jmp 0x4a7110
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jl 0x4a71c3
push 0x635f30
push ecx
call fcn.005d9339
add esp, 8
test eax, eax
je 0x4a71bf
mov ecx, dword [esp + 0x10]
sub eax, ecx
js 0x4a71c3
call fcn.005bc43d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4a70d1
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.00403020
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.004a6780
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 0x4a71a9
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.004a5ad0
test eax, eax
jne 0x4a7110
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 0x4a71e7
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 0x4a7212
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.005c7aa4
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push 0x4403a0
push 4
push eax
push ecx
call fcn.005dba70
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 0x4a7262
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 0x4a728a
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 0x4a72b2
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 0x4a72e0
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