Function at 0x51af01
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5850c4
push eax
mov eax, 0x4b44
mov dword fs:[0], esp
call fcn.005417a0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x4b64]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x4b5c], ebx
jne 0x51af2d
mov dword [esp + 0x4b5c], 0xffffffff
jmp 0x51b987
cmp dword [esi + 0x74], ebx
jne 0x51af42
mov dword [esp + 0x4b5c], 0xffffffff
jmp 0x51b987
push 0x5d8fb8
lea ecx, [esp + 0x4b6c]
call fcn.00554a4e
or edi, 0xffffffff
cmp eax, edi
je 0x51b076
lea ecx, [esp + 0x48]
call fcn.00557573
lea eax, [esp + 0x48]
push ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5d8fb8
mov byte [esp + 0x4b6c], 1
call fcn.0055969a
push ecx
lea edx, [esp + 0x4b78]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x4b70], 2
call fcn.005593a1
mov byte [esp + 0x4b6c], 1
call fcn.0043cd40
mov eax, dword [esp + 0x60]
add esp, 0x10
cmp eax, 2
je 0x51afcb
mov byte [esp + 0x4b5c], bl
lea ecx, [esp + 0x48]
jmp 0x51b97b
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
call fcn.005593a1
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x4b5c], 3
add ecx, 4
push ecx
lea ecx, [esp + 0x4b6c]
call fcn.00559765
mov edx, dword [esi + 0x74]
lea ecx, [esp + 0x18]
add edx, 0x620
push edx
call fcn.0055969a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00541319
add esp, 8
mov byte [esp + 0x4b5c], 3
test eax, eax
lea ecx, [esp + 0x18]
je 0x51b050
call fcn.0055962c
lea ecx, [esp + 0x14]
mov byte [esp + 0x4b5c], 1
call fcn.0055962c
mov byte [esp + 0x4b5c], bl
lea ecx, [esp + 0x48]
jmp 0x51b97b
call fcn.0055962c
lea ecx, [esp + 0x14]
mov byte [esp + 0x4b5c], 1
call fcn.0055962c
lea ecx, [esp + 0x48]
mov byte [esp + 0x4b5c], bl
call fcn.005575a6
lea ecx, [esp + 0x60]
call fcn.00557573
lea edx, [esp + 0x60]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5d8fb4
mov byte [esp + 0x4b6c], 5
call fcn.0055969a
push ecx
lea eax, [esp + 0x4b78]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x4b70], 6
call fcn.005593a1
mov byte [esp + 0x4b6c], 5
call fcn.0043cd40
mov eax, dword [esp + 0x78]
add esp, 0x10
cmp eax, 3
jne 0x51b970
push 0x5ed678
lea ecx, [esp + 0x28]
call fcn.0055969a
mov ecx, dword [esi + 0x74]
mov byte [esp + 0x4b5c], 7
add ecx, 0x658
push ecx
lea ecx, [esp + 0x48]
call fcn.0055969a
lea ecx, [esp + 0x78]
mov byte [esp + 0x4b5c], 8
call fcn.00557573
lea edx, [esp + 0x78]
push ebx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5d8fb8
mov byte [esp + 0x4b6c], 9
call fcn.0055969a
push ecx
lea eax, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x4b70], 0xa
call fcn.005593a1
mov byte [esp + 0x4b6c], 9
call fcn.0043cd40
mov eax, dword [esp + 0x90]
add esp, 0x10
xor esi, esi
cmp eax, ebx
jle 0x51b93d
lea ecx, [esp + 0x30]
call fcn.00557573
lea ecx, [esp + 0x30]
push ebx
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5d8fb4
mov byte [esp + 0x4b6c], 0xb
call fcn.0055969a
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x4b6c], 0xc
call fcn.0041e2e0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.005593a1
mov byte [esp + 0x4b6c], 0xb
call fcn.0043cd40
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x44]
mov eax, dword [edx]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00541319
add esp, 0x18
test eax, eax
jne 0x51b2cd
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004c3520
add esp, 8
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x1c]
add ecx, 8
lea eax, [esp + 0x28]
push ecx
push edx
push eax
mov byte [esp + 0x4b68], 0xd
call fcn.0055985b
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b60], 0xe
call fcn.00559765
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b5c], 0xd
call fcn.0055962c
push ebx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005593a1
call fcn.0043f6a0
add esp, 8
cmp eax, ebx
je 0x51b2bc
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2cc]
push eax
push ecx
call fcn.004387a0
add esp, 8
test eax, eax
je 0x51b2bc
lea edx, [esp + 0x2e0]
lea ecx, [esp + 0x48]
push edx
call fcn.0053910e
lea eax, [esp + 0x14]
push str._H:_M
push eax
lea ecx, [esp + 0x50]
call fcn.00539277
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
push eax
push edx
call fcn.00541319
add esp, 8
mov byte [esp + 0x4b5c], 0xd
test eax, eax
lea ecx, [esp + 0x14]
je 0x51b2f3
call fcn.0055962c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b5c], 0xb
call fcn.0055962c
lea ecx, [esp + 0x30]
mov byte [esp + 0x4b5c], 9
call fcn.005575a6
mov eax, dword [esp + 0x80]
inc esi
cmp esi, eax
jl 0x51b16b
jmp 0x51b93d
call fcn.0055962c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b5c], 0xb
call fcn.0055962c
lea ecx, [esp + 0x30]
mov byte [esp + 0x4b5c], 9
call fcn.005575a6
mov esi, 0x589990
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
push edi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x4b64], 0x10
call fcn.00434020
push fcn.0055962c
push 0x43cab0
push 0x104
lea eax, [esp + 0x750]
push 4
push eax
call fcn.0054227f
mov ecx, dword [0x5e8e38]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x24]
push str..
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x4b68], 0x12
call fcn.005598c1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b60], 0x13
call fcn.00559765
lea ecx, [esp + 0x14]
mov byte [esp + 0x4b5c], 0x12
call fcn.0055962c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2cc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, edi
jne 0x51b416
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b5c], 0x11
call fcn.0055962c
push fcn.0055962c
push 0x104
lea eax, [esp + 0x74c]
push 4
push eax
mov byte [esp + 0x4b6c], 0x10
call fcn.00540d75
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], esi
cmp eax, ebx
je 0x51b93d
push eax
call fcn.00558a4c
add esp, 4
jmp 0x51b93d
mov edi, 0x5ed678
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5ed678
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x2ac], ebx
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x2b4], ebx
mov dword [esp + 0x2b8], ebx
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2c8], ebx
call fcn.0055969a
mov esi, eax
lea edx, [esp + 0x24]
push 0x5d8fbc
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x4b68], 0x14
call fcn.005598c1
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x4b68], 0x15
call fcn.0055985b
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b5c], 0x18
call fcn.0055962c
lea ecx, [esp + 0x74]
mov byte [esp + 0x4b5c], 0x17
call fcn.0055962c
lea edx, [esp + 0x2f8]
lea ecx, [esp + 0x2c]
push edx
call fcn.0055969a
mov eax, dword [eax]
push 0x5d8a08
push eax
call fcn.00541319
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne byte [esp + 0x13]
call fcn.0055962c
cmp byte [esp + 0x13], bl
je 0x51b6d9
lea eax, [esp + 0x2f8]
lea ecx, [esp + 0x20]
push eax
call fcn.0055969a
mov eax, dword [eax]
push 0x5da564
push eax
call fcn.00541319
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne byte [esp + 0x13]
call fcn.0055962c
cmp byte [esp + 0x13], bl
je 0x51b5fd
test byte [esp + 0x2cc], 0x10
je 0x51b5d6
push ebx
push 0x1f4
mov dword [esp + 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x9c], esp
push 0x5ed678
call fcn.0055969a
push 1
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xa8], esp
push edx
mov byte [esp + 0x4b78], 0x19
call fcn.005593a1
mov byte [esp + 0x4b74], 0x17
call fcn.0043f7b0
add esp, 0x18
mov dword [esp + 0x2ac], eax
mov dword [esp + 0x2b0], edx
jmp 0x51b612
mov eax, dword [esp + 0x2e8]
mov ecx, dword [esp + 0x2ec]
shl eax, 0x20
or eax, ecx
mov dword [esp + 0x9c], 1
mov dword [esp + 0x2ac], eax
jmp 0x51b60b
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x2ac], ebx
mov dword [esp + 0x2b0], ebx
mov ecx, dword [esp + 0x14]
push 0x104
lea edx, [esp + 0x1a8]
push ecx
push edx
call fcn.00438200
lea edi, [esp + 0x304]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2e0]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0053910e
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2bc], edx
mov dword [esp + 0x2c0], eax
mov eax, dword [ecx]
push eax
call fcn.005414a3
mov ecx, 0x8e
lea esi, [esp + 0x98]
lea edi, [esp + 0x510]
mov dword [esp + 0x2bc], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
add esp, 4
lea ecx, [esp + 0x30]
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
call fcn.00434020
mov ecx, dword [esp + 0x34]
lea eax, [esi + esi*8]
shl eax, 3
sub eax, esi
lea esi, [esp + 0x50c]
lea edi, [ecx + eax*8]
mov ecx, 0x8e
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x2cc]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x4b5c], 0x12
call fcn.0055962c
cmp esi, ebx
jne 0x51b416
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5ed678
lea ecx, [esp + 0x2c]
call fcn.0055969a
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x4b5c], 0x1a
jle 0x51b84f
xor esi, esi
mov eax, dword [0x5e8e38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x40c]
push 0xa
push ecx
mov edx, dword [eax + esi + 0x21c]
mov eax, dword [eax + esi + 0x218]
push edx
push eax
mov byte [esp + 0x4b6c], 0x1b
call fcn.005429d7
mov ecx, dword [esp + 0x44]
add esp, 0x10
lea edx, [esp + 0x20]
fld qword [ecx + esi + 0x228]
push str._Y__m__d__H:_M:_S
push edx
fstp qword [esp + 0x50]
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], ebx
call fcn.00539277
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x410]
mov eax, dword [ecx + esi + 8]
push edx
push eax
mov eax, dword [ecx + esi + 0x224]
lea edx, [ecx + esi + 0xc]
lea ecx, [esp + 0x24]
push edx
push eax
push str._d::_s::_d::_s::_s
push ecx
mov byte [esp + 0x4b78], 0x1c
call fcn.00554dd4
add esp, 0x1c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b5c], 0x1b
call fcn.0055962c
mov edx, dword [esp + 0x38]
dec edx
cmp edi, edx
je 0x51b7f0
push 0x5d8fb8
lea ecx, [esp + 0x1c]
call fcn.00559a08
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax - 8]
mov ecx, dword [ecx - 8]
lea edx, [ecx + eax + 1]
cmp edx, 0x3e70
jge 0x51b83e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call fcn.00559a44
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b5c], 0x1a
call fcn.0055962c
mov eax, dword [esp + 0x38]
inc edi
add esi, 0x238
cmp edi, eax
jl 0x51b730
jmp 0x51b84f
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b5c], 0x1a
call fcn.0055962c
mov ecx, dword [esp + 0x28]
push 0x5ed678
push ecx
call fcn.00541319
add esp, 8
test eax, eax
je 0x51b8de
mov edi, 0x5ed678
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00438200
mov eax, dword [esp + 0x4b78]
add esp, 0xc
cmp eax, ebx
lea eax, [esp + 0xb54]
push ebx
push ebx
push ebx
push eax
jne 0x51b8c5
push 0x95
jmp 0x51b8ca
push 0x99
mov ecx, dword [esp + 0x4b78]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [edx + 0x68]
call fcn.00489ab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b5c], 0x12
call fcn.0055962c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b5c], 0x11
call fcn.0055962c
push fcn.0055962c
push 0x104
lea eax, [esp + 0x74c]
push 4
push eax
mov byte [esp + 0x4b6c], 0x10
call fcn.00540d75
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0x589990
cmp eax, ebx
je 0x51b93a
push eax
call fcn.00558a4c
add esp, 4
or edi, 0xffffffff
lea ecx, [esp + 0x78]
mov byte [esp + 0x4b5c], 8
call fcn.005575a6
lea ecx, [esp + 0x44]
mov byte [esp + 0x4b5c], 7
call fcn.0055962c
lea ecx, [esp + 0x24]
mov byte [esp + 0x4b5c], 5
call fcn.0055962c
mov byte [esp + 0x4b5c], bl
lea ecx, [esp + 0x60]
call fcn.005575a6
mov dword [esp + 0x4b5c], edi
lea ecx, [esp + 0x4b68]
call fcn.0055962c
mov ecx, dword [esp + 0x4b54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4b50
ret 0xc