Function at 0x481910
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x538842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x590f68]
push ebx
push ebp
push esi
push edi
push 0xffff0002
push 0xffff0000
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1ac]
mov eax, dword [eax]
push ebx
mov esi, ecx
push ebx
push eax
lea edi, [esi + 0x5c0]
push 0x23
mov ecx, edi
mov dword [esp + 0x60], esi
call fcn.004ff126
mov edx, dword [esi + 0x808]
mov ecx, eax
mov eax, dword [edx + 0x4b0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
mov dword [esp + 0x5c], ecx
push ecx
mov ecx, edi
call fcn.004ff0d8
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x190], ebx
call fcn.00501882
mov byte [esp + 0x190], 1
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
test ebx, ebx
mov byte [esp + 0x190], 2
push 6
jne 0x4819e0
push 0x5582e0
jmp 0x4819f1
cmp ebx, 1
jne 0x4819ec
push 0x5582d8
jmp 0x4819f1
push 0x5582d0
lea ecx, [esp + 0x18]
call fcn.00401720
mov ecx, dword [esp + 0x198]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402ed0
add esp, 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x190], 3
je 0x481a6e
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x481a60
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x481a60
push eax
call fcn.00402ae0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x481a57
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x481a6e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401720
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x190], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x481b78
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x20]
call fcn.004018f0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x198], 4
call fcn.00501bd3
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
lea ecx, [esp + 0x44]
push ecx
push esi
call edi
test eax, eax
je 0x481b4b
lea ebx, [ebx]
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
call fcn.004018f0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x198], 5
call fcn.00501bd3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x190], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x481b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x44]
push eax
push esi
call edi
test eax, eax
jne 0x481af0
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x190], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x190], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc ebx
cmp ebx, 3
jl 0x4819b8
mov edx, dword [esp + 0x2c]
lea eax, [edx - 1]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x481e9b
nop
mov eax, dword [esp + 0x18]
inc eax
cmp eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], eax
jge 0x481e8c
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov ebx, dword [esp + 0x18]
jl 0x482001
cmp ecx, edx
jge 0x482001
test ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ecx*4]
jl 0x482001
cmp ebx, edx
jge 0x482001
lea edi, [ebx*4]
mov eax, dword [edi + eax]
push ecx
push eax
mov dword [esp + 0x28], edi
call fcn.004ea679
mov edx, dword [esp + 0x34]
add esp, 8
test eax, eax
jle 0x481e77
cmp ebx, edx
jge 0x482001
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + ecx]
mov ebp, dword [esp + 0x14]
lea esi, [eax - 0x10]
add ebp, 0xfffffff0
cmp esi, ebp
je 0x481cea
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x481cd8
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x481cd8
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x481c7b
cmp eax, dword [esi]
jne 0x481c7b
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x481cb3
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 0x481fe9
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 0x481ccb
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
jmp 0x481ce6
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401720
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x10], edx
jge 0x482001
cmp ebx, edx
jge 0x482001
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov ebx, dword [edi + eax]
lea ecx, [edi + eax]
mov eax, dword [eax + esi*4]
lea esi, [eax - 0x10]
sub ebx, 0x10
cmp esi, ebx
mov dword [esp + 0x1c], ecx
je 0x481db4
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x481da2
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x481da2
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x481d4c
cmp eax, dword [esi]
jne 0x481d4c
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x481d80
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x481fe9
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 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, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481d97
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add ebp, 0x10
mov dword [eax], ebp
jmp 0x481db0
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.00401720
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jge 0x482001
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov ebx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
add esi, 0xfffffff0
sub ebx, 0x10
cmp esi, ebx
mov dword [esp + 0x20], ecx
je 0x481e77
mov eax, dword [ebx + 0xc]
test eax, eax
jl 0x481e65
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x481e65
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x481e0f
cmp eax, dword [esi]
jne 0x481e0f
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x481e43
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x481fe9
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 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, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481e5a
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add ebp, 0x10
mov dword [eax], ebp
jmp 0x481e73
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
push eax
push edx
call fcn.00401720
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x481bd5
mov eax, dword [esp + 0x38]
lea ecx, [edx - 1]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x481bc0
xor esi, esi
test edx, edx
jle 0x481f84
mov ebp, dword [esp + 0x3c]
lea esp, [esp]
test esi, esi
mov edi, 1
jl 0x482001
cmp esi, edx
jge 0x482001
mov edx, dword [esp + 0x28]
push edi
lea eax, [esp + 0x3c]
lea ecx, [edx + esi*4]
push eax
call fcn.00402d10
mov eax, dword [eax]
push 0x5582cc
push eax
call fcn.004ea679
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x481fee
mov eax, dword [ebp + 0x824]
test eax, eax
mov edi, 2
je 0x481f59
cmp esi, dword [esp + 0x2c]
jge 0x482001
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + esi*4]
push 0xffff0002
push ecx
push 0
push 0
push 0
push edi
push edi
push eax
push 0x23
lea ecx, [ebp + 0x5c0]
call fcn.004ff126
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
inc edi
push edi
push 0
push 0
push 0
push 0
push 0
push 4
push edx
lea ecx, [ebp + 0x5c0]
call fcn.004ff0d8
mov edx, dword [esp + 0x2c]
inc esi
cmp esi, edx
jl 0x481eb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 0
call fcn.005018ff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x190], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481fbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x188]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x178]
pop ebx
call fcn.004e9911
add esp, 0x184
ret 4
call fcn.00401380
mov eax, dword [ebp + 0x820]
test eax, eax
jne 0x481f24
jmp 0x481f59
call fcn.004fd76e
int3