Function at 0x4a1e00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x53b1e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov eax, dword [0x590f68]
push ebx
push esi
mov dword [esp + 0x178], eax
push edi
mov edi, dword [esp + 0x190]
mov esi, dword [edi - 0xc]
push 0x5c
xor ebx, ebx
push edi
mov dword [esp + 0x190], ebx
call fcn.004ea4f2
add esp, 8
cmp eax, ebx
jne 0x4a1e51
or eax, 0xffffffff
jmp 0x4a1e53
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x198]
call fcn.00402d10
mov esi, dword [esp + 0x20]
push 0x2e
push esi
mov byte [esp + 0x190], 1
call fcn.004ea4f2
add esp, 8
cmp eax, ebx
jne 0x4a1e88
or eax, 0xffffffff
jmp 0x4a1e8a
sub eax, esi
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402d70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], 2
call fcn.00402e60
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x188], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a1ed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x5c
push edi
call fcn.004ea4f2
add esp, 8
cmp eax, ebx
jne 0x4a1ee5
or eax, 0xffffffff
jmp 0x4a1ee7
sub eax, edi
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x198]
call fcn.00402d70
push 3
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x198]
mov byte [esp + 0x190], 3
call fcn.00402d10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 4
call fcn.00402cb0
push 0x2e
push edi
mov dword [esp + 0x14], 1
call fcn.004ea4f2
add esp, 8
cmp eax, ebx
jne 0x4a1f41
or eax, 0xffffffff
jmp 0x4a1f43
sub eax, edi
dec eax
cmp eax, ebx
jl 0x4a28c7
cmp eax, dword [edi - 0xc]
jg 0x4a28c7
mov al, byte [eax + edi]
cmp al, 0x30
mov esi, dword [esp + 0x20]
push ebp
jl 0x4a2413
cmp al, 0x39
jg 0x4a2413
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
xor edi, edi
cmp ecx, ebx
jl 0x4a1fa1
lea esp, [esp]
cmp ecx, ebx
jl 0x4a2497
cmp ecx, eax
jg 0x4a2497
mov dl, byte [ecx + esi]
cmp dl, 0x30
jl 0x4a1fa1
cmp dl, 0x39
jg 0x4a1fa1
inc edi
dec ecx
jns 0x4a1f80
sub eax, edi
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x2c]
call fcn.00402d70
mov byte [esp + 0x18c], 5
mov dword [esp + 0x10], ebx
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
push 0x3f
lea ecx, [esp + 0x44]
mov byte [esp + 0x194], 6
call fcn.00446fb0
push 0x54e018
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x198], 7
call fcn.00402f80
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1a4], 8
call fcn.00402ed0
lea ecx, [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x1b0], 9
call fcn.00402ed0
push 0x5539dc
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1bc], 0xa
call fcn.00402f80
lea ecx, [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x64]
mov bl, 0xb
push edx
mov byte [esp + 0x1c8], bl
call fcn.00402ed0
add esp, 0x3c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 0xc
call fcn.00402e60
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x18c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a209c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a20c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a20e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a210e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2134
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x4a2396
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004018f0
mov eax, dword [esp + 0x18]
push 0x2e
push eax
mov byte [esp + 0x194], 0xd
call fcn.004ea4f2
mov edx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x4a2183
or eax, 0xffffffff
jmp 0x4a2185
sub eax, edx
dec eax
xor esi, esi
test edi, edi
jle 0x4a21b4
lea esp, [esp]
test eax, eax
jl 0x4a2497
cmp eax, dword [edx - 0xc]
jg 0x4a2497
mov cl, byte [eax + edx]
cmp cl, 0x30
jl 0x4a21d1
cmp cl, 0x39
jg 0x4a21d1
inc esi
dec eax
cmp esi, edi
jl 0x4a2190
mov ecx, dword [esp + 0x198]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x18], 1
call fcn.00501bd3
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.kernel32.dll_FindNextFileA]
lea eax, [esp + 0x40]
push eax
push ecx
call ebp
test eax, eax
je 0x4a22ac
mov bl, 0xe
lea ecx, [ecx]
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
call fcn.004018f0
mov eax, dword [esp + 0x14]
push 0x2e
push eax
mov byte [esp + 0x194], bl
call fcn.004ea4f2
mov edx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x4a2221
or eax, 0xffffffff
jmp 0x4a2223
sub eax, edx
dec eax
xor esi, esi
test edi, edi
jle 0x4a2254
lea ebx, [ebx]
test eax, eax
jl 0x4a2497
cmp eax, dword [edx - 0xc]
jg 0x4a2497
mov cl, byte [eax + edx]
cmp cl, 0x30
jl 0x4a2276
cmp cl, 0x39
jg 0x4a2276
inc esi
dec eax
cmp esi, edi
jl 0x4a2230
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x198]
inc eax
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.00501bd3
mov edx, dword [esp + 0x14]
lea eax, [edx - 0x10]
mov byte [esp + 0x18c], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x40]
push eax
push ecx
call ebp
test eax, eax
jne 0x4a21f0
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a22dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x10], 1
jle 0x4a2396
push 0x5539dc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00402f80
lea edx, [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1a4], 0xf
call fcn.00402ed0
add esp, 0x18
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a233d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x24]
push 0x553968
push ecx
call fcn.00404c00
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push 4
push edx
call fcn.00515e6f
cmp eax, 6
je 0x4a2374
mov dword [esp + 0x10], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x18c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a23bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a23e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x10], 1
jg 0x4a24a1
mov esi, dword [esp + 0x198]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0050191f
push 0x5539dc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402f80
lea edx, [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x34]
mov bl, 0x12
push eax
mov byte [esp + 0x1a4], bl
call fcn.00402ed0
add esp, 0x18
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x194], 0x13
call fcn.00501bd3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x18c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a248e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
jmp 0x4a27d4
push 0x80070057
call fcn.00401120
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
xor eax, eax
dec ecx
test ecx, ecx
mov byte [esp + 0x18c], 0x14
mov dword [esp + 0x18], eax
jle 0x4a27d0
nop
mov ecx, dword [esp + 0x10]
lea edx, [eax + 1]
cmp edx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
jge 0x4a27bd
jmp 0x4a24f1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test edx, edx
mov ecx, dword [esp + 0x198]
jl 0x4a28c2
mov esi, dword [ecx + 8]
cmp edx, esi
jge 0x4a28c2
mov ecx, dword [ecx + 4]
shl edx, 2
test eax, eax
mov edx, dword [edx + ecx]
jl 0x4a28c2
cmp eax, esi
jge 0x4a28c2
lea edi, [eax*4]
mov ecx, dword [edi + ecx]
push edx
push ecx
mov dword [esp + 0x28], edi
call fcn.004ea679
add esp, 8
test eax, eax
jle 0x4a27a4
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 8]
jge 0x4a28c2
mov eax, dword [eax + 4]
mov ebp, dword [esp + 0x14]
add eax, edi
mov eax, dword [eax]
lea esi, [eax - 0x10]
add ebp, 0xfffffff0
cmp esi, ebp
je 0x4a260a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a25fc
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x4a25fc
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4a25a3
cmp eax, dword [esi]
jne 0x4a25a3
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4a25db
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x4a28bd
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a25f3
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4a260a
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401720
mov eax, dword [esp + 0x198]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x4a28c2
cmp dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
jge 0x4a28c2
mov ebp, dword [edi + eax]
lea ecx, [edi + eax]
shl edx, 2
mov eax, dword [edx + eax]
lea esi, [eax - 0x10]
sub ebp, 0x10
cmp esi, ebp
mov dword [esp + 0x34], ecx
je 0x4a26de
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a26d0
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x4a26d0
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4a2679
cmp eax, dword [esi]
jne 0x4a2679
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4a26ad
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x4a28bd
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a26c5
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add ebx, 0x10
mov dword [eax], ebx
jmp 0x4a26de
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x38]
push eax
call fcn.00401720
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 8]
jge 0x4a28c2
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
shl ecx, 2
mov ebp, dword [eax + ecx]
add eax, ecx
lea esi, [edx - 0x10]
sub ebp, 0x10
cmp esi, ebp
mov dword [esp + 0x20], eax
je 0x4a27a4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4a2798
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x4a2798
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4a2741
cmp eax, dword [esi]
jne 0x4a2741
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4a2775
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x4a28bd
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a278d
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add ebx, 0x10
mov dword [eax], ebx
jmp 0x4a27a4
mov ecx, dword [edx - 0xc]
push ecx
push edx
mov ecx, eax
call fcn.00401720
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4a24e9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, edx
dec ecx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4a24d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a27f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a281c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2842
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x18c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x194]
add eax, 0xfffffff0
mov dword [esp + 0x18c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2894
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x174]
pop ebx
call fcn.004e9911
add esp, 0x180
ret
jmp fcn.00401380
jmp fcn.004fd76e
push 0x80070057
call fcn.00401120
int3