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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca841
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2c4], edi
mov esi, ecx
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b4], esi
lea ecx, [ebp - 0x150]
push 0x656854
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
call fcn.00403380
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.005af510
push str..
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.005bb1cf
add esp, 0x24
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2b0], eax
cmp eax, 0xffffffff
jne 0x402748
movups xmm0, xmmword [ebp - 0x150]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x140]
movq qword [esi + 0x10], xmm0
jmp 0x402b7f
mov esi, eax
nop word [eax + eax]
test byte [ebp - 0x2a8], 0x10
jne 0x402b37
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x158], 0
push eax
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], 0
call fcn.00403380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
push edi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
call fcn.00403380
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x124]
mov eax, edx
mov ecx, dword [ebp - 0x128]
sub eax, ecx
push 1
push 0x656a8c
cmp eax, 1
jb 0x4027ff
cmp edx, 0x10
lea esi, [ebp - 0x138]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x138]
add esi, ecx
mov dword [ebp - 0x128], eax
push esi
call fcn.005a1cc0
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x402819
mov byte [ebp - 0x2c8], 0
lea ecx, [ebp - 0x138]
push dword [ebp - 0x2c8]
push 1
call fcn.00403720
cmp dword [ebp - 0x154], 0x10
lea ecx, [ebp - 0x168]
mov eax, dword [ebp - 0x168]
mov esi, dword [ebp - 0x124]
cmovae ecx, eax
mov edx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x158]
mov dword [ebp - 0x2c0], eax
mov eax, esi
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40287c
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
lea esi, [eax + edx]
push esi
call fcn.005a1cc0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4028a1
mov byte [ebp - 0x2cc], 0
lea ecx, [ebp - 0x138]
push dword [ebp - 0x2cc]
push edi
call fcn.00403720
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
push 0
cmovae eax, dword [ebp - 0x138]
push 0x2000080
push 3
push 0
push 0
push connect
push eax
mov byte [ebp - 0x2a9], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2bc], eax
cmp eax, 0xffffffff
jne 0x4028eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402a96
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xa00000
ja 0x4029a9
push esi
call fcn.005b07e2
mov edi, eax
add esp, 4
mov dword [ebp - 0x2b8], edi
test edi, edi
je 0x4029a9
push esi
push 0
push edi
mov dword [ebp - 0x2d0], 0
call fcn.005a2240
add esp, 0xc
lea eax, [ebp - 0x2d0]
push 0
push eax
push esi
push edi
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 0x15]
mov byte [ebp - 0x2a9], 0
xor edi, edi
mov dword [ebp - 0x2d4], eax
test eax, eax
jle 0x40299b
nop
mov edx, dword [ebp - 0x2b8]
mov eax, str.BKDriverHaveException
add edx, edi
mov esi, 0x11
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x402989
add edx, 4
add eax, 4
sub esi, 4
jae 0x402972
mov cl, byte [edx]
cmp cl, byte [eax]
je 0x402994
inc edi
cmp edi, dword [ebp - 0x2d4]
jl 0x402960
jmp 0x40299b
mov byte [ebp - 0x2a9], 1
push dword [ebp - 0x2b8]
call fcn.005af424
add esp, 4
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2a9], 0
je 0x402a96
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x138]
mov esi, dword [ebp - 0x13c]
mov eax, esi
cmovae ecx, dword [ebp - 0x138]
mov edi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x140]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x402a1d
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
lea esi, [eax + edx]
push esi
call fcn.005a1cc0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x402a36
mov byte [ebp - 0x2d8], 0
lea ecx, [ebp - 0x150]
push dword [ebp - 0x2d8]
push edi
call fcn.00403720
mov edx, dword [ebp - 0x13c]
mov eax, edx
mov ecx, dword [ebp - 0x140]
sub eax, ecx
push 1
push 0x656a90
cmp eax, 1
jb 0x402a7c
cmp edx, 0x10
lea esi, [ebp - 0x150]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x150]
add esi, ecx
mov dword [ebp - 0x140], eax
push esi
call fcn.005a1cc0
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x402a96
mov byte [ebp - 0x2b4], 0
lea ecx, [ebp - 0x150]
push dword [ebp - 0x2b4]
push 1
call fcn.00403720
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x402ad4
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402aca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b9d
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp eax, 0x10
jb 0x402b2b
mov edx, dword [ebp - 0x2c0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402b21
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b9d
push ecx
push edx
call fcn.0059c9cd
add esp, 8
mov edi, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402750
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2dc]
movups xmm0, xmmword [ebp - 0x150]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x140]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.005a57f9
int3