Function at 0x47fd40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eb59
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1c
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x284], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x47fda1
push 1
push 0x5c2c18
push 1
push 0
mov ecx, eax
call fcn.0047fb80
mov esi, eax
jmp 0x47fda3
xor esi, esi
lea eax, [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
mov dword [ebp - 0x274], 0
push eax
mov dword [ebp - 0x278], ecx
call fcn.00447520
mov dword [eax], esi
lea eax, [ebp - 0x270]
push eax
call fcn.004803d0
mov dword [ebp - 4], 1
push dword [ebp - 0x270]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x480281
push 0x5beef0
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x288]
call fcn.00414260
add esp, 4
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x288]
mov ebx, eax
add esi, 0xfffffff0
mov dword [ebp - 0x284], ebx
mov edx, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fe44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x480281
lea ecx, [ecx]
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x48032a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x268], ebx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c2d0
mov byte [ebp - 4], 3
mov edx, 0x5beef8
mov eax, dword [ebp - 0x264]
mov ecx, eax
jmp 0x47fea0
mov si, word [ecx]
cmp si, word [edx]
jne 0x47fec6
test si, si
je 0x47fec2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x47fec6
add ecx, 4
add edx, 4
test si, si
jne 0x47fea0
xor ecx, ecx
jmp 0x47fecb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x480224
mov edx, 0x5beefc
mov ecx, eax
lea ebx, [ebx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x47ff06
test si, si
je 0x47ff02
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x47ff06
add ecx, 4
add edx, 4
test si, si
jne 0x47fee0
xor ecx, ecx
jmp 0x47ff0b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x480224
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x294]
call fcn.00428a60
add esp, 4
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 4
call fcn.0040b7d0
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x294]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ff61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x47ff83
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
jmp 0x48022b
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ff90
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.0040c1c0
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x48032a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x268]
push 0x2e
push esi
mov ebx, dword [esi - 0xc]
call fcn.005547f6
add esp, 8
test eax, eax
jne 0x47fff7
or eax, 0xffffffff
jmp 0x47fffb
sub eax, esi
sar eax, 1
sub ebx, eax
lea ecx, [ebp - 0x268]
dec ebx
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00419710
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 6
call fcn.0040b7d0
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480044
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x274]
push 0x5c2c3c
push edi
call fcn.00551d79
add esp, 8
test eax, eax
jne 0x4802c6
push 0x2e
push esi
call fcn.005547f6
add esp, 8
test eax, eax
jne 0x480074
or eax, 0xffffffff
jmp 0x480078
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x268]
call fcn.004120e0
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 7
call fcn.0040b7d0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x290]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4800bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x268]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
lea eax, [ebx - 0x10]
mov dword [ebp - 0x280], 0
push ecx
mov ecx, eax
mov dword [ebp - 0x27c], eax
mov esi, esp
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
call fcn.00480500
test eax, eax
jne 0x48016f
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480128
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48014b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x27c]
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48025e
mov ecx, dword [edx]
push edx
jmp 0x480259
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x298]
push ecx
mov esi, dword [eax]
mov ecx, eax
call fcn.00431ca0
cmp dword [eax], esi
jne 0x4801de
push 0x1c
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4801c2
push 0
push ebx
push dword [ebp - 0x280]
mov ecx, eax
push dword [ebp - 0x26c]
call fcn.0047fb80
mov esi, eax
jmp 0x4801c4
xor esi, esi
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 5
call fcn.00447520
mov dword [eax], esi
jmp 0x4801fe
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x26c]
push eax
call fcn.00447520
push ebx
push dword [ebp - 0x280]
mov ecx, dword [eax]
call fcn.00485d30
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48021e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 2
lea edx, [eax - 0x10]
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480241
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48025e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x284]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47fe50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4802a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4802e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480309
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48025e
mov ecx, dword [esi]
push esi
jmp 0x480259
push 0x80004005
call fcn.0040c390
int3