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

Disassembly:
push 0xffffffffffffffff
push 0x45dfb7
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e074]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea esi, [esp + 0x48]
mov dword [esp + 0x30], edi
call fcn.00404660
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jb 0x404843
mov eax, dword [esp + 0x48]
push eax
call fcn.00445523
add esp, 4
push str.______FindNearLogFile_______
push 0x4618f0
call fcn.00446332
add esp, 8
push edi
lea esi, [esp + 0x9c]
call fcn.00404660
xor ebx, ebx
mov ecx, 0x461377
mov edi, esi
mov dword [esp + 0x220], ebx
call fcn.00407540
test al, al
je 0x404887
cmp dword [esp + 0xb0], ebp
jmp 0x404c3e
xor eax, eax
xor edx, edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov eax, dword [0x470564]
mov word [esp + 0x1c], dx
mov edx, dword [eax + 0xc]
mov ecx, 0x470564
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x220], 1
push ebx
push 0x461377
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.004017b0
lea eax, [esp + 0x98]
push eax
mov edi, 0x46196c
lea esi, [esp + 0x80]
mov byte [esp + 0x224], 2
call fcn.00401b70
add esp, 4
mov byte [esp + 0x220], 3
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x404925
lea eax, [esp + 0x80]
lea ecx, [esp + 0xd4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x30], edi
cmp edi, 0xffffffff
je 0x4049f6
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4049f6
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
lea edx, [esp + 0x100]
lea ebx, [esp + 0x18]
call fcn.00406510
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, 1
sub edx, dword [ebp - 4]
sub eax, ecx
or eax, edx
jge 0x4049a1
mov eax, ebx
call fcn.00406b10
mov ebp, dword [esp + 0x18]
push 1
push 0x461960
lea ecx, [esp + 0x68]
call fcn.004017b0
push 0
lea eax, [esp + 0x9c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x68]
call fcn.00401c40
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049d0
sub eax, edx
push eax
push ebp
lea eax, [esp + 0x68]
call fcn.00401d30
push 1
push 0x461960
lea eax, [esp + 0x68]
call fcn.00401d30
xor ebx, ebx
lea ecx, [esp + 0xd4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404b23
lea ecx, [ecx]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x404b0c
fldz
lea ecx, [esp + 0x3c]
push ecx
fstp qword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
fld qword [esp + 0x3c]
fld qword [esp + 0x34]
fsubr st(1)
fcomp qword [0x46a460]
fnstsw ax
test ah, 0x41
jne 0x404b0a
lea eax, [esp + 0x100]
fstp qword [esp + 0x34]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404a70
sub eax, edx
lea ecx, [esp + 0x100]
mov edi, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00407390
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, 1
sub edx, dword [ebp - 4]
sub eax, ecx
or eax, edx
jge 0x404ab1
lea eax, [esp + 0x18]
call fcn.00406b10
mov ebp, dword [esp + 0x18]
push 1
push 0x461960
lea ecx, [esp + 0x68]
call fcn.004017b0
push ebx
lea edx, [esp + 0x9c]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x68]
call fcn.00401c40
mov eax, ebp
lea edx, [eax + 1]
jmp 0x404ae0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404ae0
sub eax, edx
push eax
push ebp
lea eax, [esp + 0x68]
call fcn.00401d30
push 1
push 0x461960
lea eax, [esp + 0x68]
call fcn.00401d30
mov edi, dword [esp + 0x30]
jmp 0x404b0c
fstp st(0)
lea eax, [esp + 0xd4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404a10
mov ecx, 0x461377
lea edi, [esp + 0x60]
call fcn.00407540
test al, al
jne 0x404bbb
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov byte [esp + 0xd0], bl
push 0xffffffffffffffff
push ebx
mov ecx, edi
push ecx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x22c], 4
call fcn.004016d0
mov esi, dword [esp + 0x2c]
lea edi, [esi + 0x58]
mov ecx, 0x461377
call fcn.00407540
test al, al
sete dl
lea edi, [esi + 0x74]
lea ebx, [esp + 0xb4]
mov byte [esp + 0xd0], dl
call fcn.004065a0
cmp dword [esp + 0xcc], 0x10
jb 0x404bb9
mov eax, dword [esp + 0xb8]
push eax
call fcn.00445523
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x94], 0x10
jb 0x404bd5
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00445523
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x78], edi
jb 0x404c07
mov edx, dword [esp + 0x64]
push edx
call fcn.00445523
add esp, 4
add ebp, 0xfffffff0
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x220], bl
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404c37
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
cmp dword [esp + 0xb0], edi
jb 0x404c50
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00445523
add esp, 4
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004453f2
add esp, 0x210
ret