Function at 0x10029627
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
mov eax, 0x10068de0
call fcn.100575f8
sub esp, 0x74c
mov eax, dword [0x10084500]
push ebx
push esi
push edi
lea edi, [ecx + 0x1c]
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x708], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xf
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], esi
call fcn.1000125d
push ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x6c], esi
call fcn.1000125d
push ebx
push 0x21
lea eax, [ebp - 0x300]
push eax
push ebx
mov byte [ebp - 4], 2
call dword [0x10085dbc]
cmp eax, ebx
jne 0x1002969f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x10029b85
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x68]
call fcn.10001619
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x100296ba
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
cmp byte [eax + ecx - 1], 0x5c
je 0x100296d0
push 0x5c
push 1
lea ecx, [ebp - 0x68]
call fcn.10008675
push 0x1006f108
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10024746
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x100296f3
mov eax, dword [eax + 4]
jmp 0x100296f6
add eax, 4
lea ecx, [ebp - 0x1fc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
push 1
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x714], eax
call fcn.10001293
push ebx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa4], esi
call fcn.1000125d
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], esi
call fcn.1000125d
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
call fcn.1000125d
mov dword [ebp - 0x728], ebx
mov dword [ebp - 0x724], ebx
mov dword [ebp - 0x720], ebx
cmp dword [ebp - 0x714], 0xffffffff
mov byte [ebp - 4], 6
jne 0x1002976f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x10029b56
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp - 0x714]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10029aef
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10001619
push ebx
push 0x1006f090
lea ecx, [ebp - 0xbc]
call fcn.1000dbd3
test eax, eax
je 0x1002976f
push ebx
push 0x1006f104
lea ecx, [ebp - 0xbc]
call fcn.1000dbd3
test eax, eax
je 0x1002976f
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x758]
push eax
call fcn.10024746
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x100297eb
mov eax, dword [eax + 4]
jmp 0x100297ee
add eax, 4
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, eax
push 1
lea ecx, [ebp - 0x758]
mov dword [ebp - 0x718], esi
call fcn.10001293
cmp esi, 0xffffffff
je 0x1002976f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x71c], eax
je 0x10029ae9
cmp eax, 0x2800
jg 0x10029ae9
push eax
call fcn.100565f2
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x710], edi
je 0x10029ae9
push ebx
lea eax, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10029ae9
push edi
lea ecx, [ebp - 0x4c]
call fcn.10001619
cmp dword [ebp - 0x34], 0x10
mov edi, dword [ebp - 0x48]
jae 0x10029a3d
lea edi, [ebp - 0x48]
mov esi, edi
lea eax, [ebp - 0x73c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10005c44
push fcn.100592a5
push edi
push dword [eax]
lea eax, [ebp - 0x70c]
push esi
push eax
call fcn.1004aad3
mov eax, dword [ebp - 0x708]
mov eax, dword [eax + 0x10]
add esp, 0x14
mov dword [ebp - 0x704], eax
mov ecx, dword [ebp - 0x708]
cmp eax, dword [ecx + 0x14]
je 0x10029a20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
call fcn.100014f5
cmp dword [ebp - 0x18], 0x10
mov edi, dword [ebp - 0x2c]
jae 0x10029a45
lea edi, [ebp - 0x2c]
mov esi, edi
lea eax, [ebp - 0x738]
push eax
lea ecx, [ebp - 0x30]
call fcn.10005c44
push fcn.100592a5
push edi
push dword [eax]
lea eax, [ebp - 0x70c]
push esi
push eax
call fcn.1004aad3
add esp, 0x14
push ebx
push str.http:__
lea ecx, [ebp - 0x30]
call fcn.1000dbd3
cmp eax, 0xffffffff
je 0x1002993f
push 0x1006cd39
push 7
push eax
lea ecx, [ebp - 0x30]
call fcn.1000e4eb
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa0]
call fcn.100015f3
push ebx
push 0x1006d050
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.1000dbd3
mov esi, eax
cmp esi, 0xffffffff
je 0x100299a9
lea eax, [esi + 1]
push eax
call fcn.100556e2
cmp dword [ebp - 0x88], 0x10
mov edi, eax
mov eax, dword [ebp - 0x9c]
pop ecx
jae 0x1002998b
lea eax, [ebp - 0x9c]
push esi
push eax
push edi
call fcn.10057be0
add esp, 0xc
push edi
lea ecx, [ebp - 0x30]
mov byte [edi + esi], bl
call fcn.10001619
push edi
call fcn.10057617
pop ecx
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x100299b5
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmp byte [ecx + eax - 1], 0x2f
jne 0x100299d0
push 0x1006cd39
push 1
dec eax
push eax
lea ecx, [ebp - 0x30]
call fcn.1000e4eb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100299dc
lea eax, [ebp - 0x2c]
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000dbd3
cmp eax, 0xffffffff
je 0x10029ac5
lea eax, [ebp - 0x734]
push eax
push ebx
push ebx
push dword [ebp - 0x718]
mov dword [ebp - 0x70c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10029a4d
push ebx
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.10001293
push dword [ebp - 0x710]
call fcn.100564da
pop ecx
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002976f
mov esi, dword [ebp - 0x48]
jmp 0x10029892
mov esi, dword [ebp - 0x2c]
jmp 0x100298f5
cmp dword [ebp - 0x728], ebx
jne 0x10029a59
xor edi, edi
jmp 0x10029a68
mov edi, dword [ebp - 0x724]
sub edi, dword [ebp - 0x728]
sar edi, 3
xor esi, esi
cmp esi, edi
jge 0x10029a97
mov eax, dword [ebp - 0x728]
lea eax, [eax + esi*8]
push eax
lea eax, [ebp - 0x734]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
je 0x10029a94
mov dword [ebp - 0x70c], 1
inc esi
jmp 0x10029a6a
cmp dword [ebp - 0x70c], ebx
jne 0x10029ac5
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x72c]
call fcn.1002933d
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x704]
lea ecx, [ebp - 0x84]
call fcn.100014f5
push ebx
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.10001293
add dword [ebp - 0x704], 0x1c
mov eax, dword [ebp - 0x704]
jmp 0x100298c8
push esi
jmp 0x10029a32
push dword [ebp - 0x714]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x70], ebx
je 0x10029ba2
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x710], 0x400
jae 0x10029b1a
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x710]
push ecx
lea ecx, [ebp - 0x700]
push ecx
push ebx
push eax
call dword [0x10085dc0]
cmp eax, ebx
je 0x10029ba2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x700]
push eax
call fcn.10001619
mov eax, dword [ebp - 0x708]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
inc esi
lea ecx, [ebp - 0x72c]
call fcn.1004f53d
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.10001293
mov eax, esi
jmp 0x10029c0b
lea ecx, [ebp - 0x72c]
call fcn.1004f53d
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x30]
call fcn.10001293
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.10001293
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.10001293
push ebx
push esi
lea ecx, [ebp - 0x84]
call fcn.10001293
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.10001293
mov eax, dword [ebp - 0x708]
or dword [ebp - 4], 0xffffffff
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
push 0x1006cd39
call fcn.10001619
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100568ae
pop edi
pop esi
pop ebx
leave
ret 4