Function at 0x402620
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6def
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x28]
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x4c], 1
xor ebx, ebx
mov dword [esp + 0x180], ebx
cmp dword [esi + 0x20], ebx
je 0x402696
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 1]
jmp 0x402966
lea eax, [esp + 0x14]
push 0x4c4694
push eax
call fcn.0047b34a
mov eax, dword [eax]
add esp, 8
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push str.DataBlack_blacklist.dat
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0047b34a
add esp, 8
push ebx
push 0x80
push 3
push ebx
push 1
mov byte [esp + 0x194], 1
mov edx, dword [esp + 0x34]
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
je 0x402926
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x40291b
push 0
push edi
lea esi, [esp + 0x15c]
mov dword [esp + 0x174], 0xf
mov dword [esp + 0x170], 0
mov byte [esp + 0x160], 0
call fcn.00403780
mov byte [esp + 0x180], 2
mov eax, dword [esp + 0x158]
mov esi, 0x10
mov dword [esp + 0x24], 0
cmp dword [esp + 0x16c], esi
jae 0x402786
lea eax, [esp + 0x158]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4028f6
cmp dword [esp + 0x24], edi
jne 0x4028f6
lea edx, [esp + 0x30]
push edx
call fcn.00443a00
mov byte [esp + 0x180], 3
mov edx, dword [esp + 0x158]
cmp dword [esp + 0x16c], esi
jae 0x4027d1
lea edx, [esp + 0x158]
lea ecx, [esp + 0x30]
call fcn.00405f40
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
je 0x4028e8
lea ebx, [esp + 0x13]
lea edi, [esp + 0x30]
mov dword [esp + 0x14], 1
mov byte [esp + 0x13], 0
call fcn.00405b80
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
jne 0x402811
call fcn.00490387
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
call fcn.00403b40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 4
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00405a20
mov byte [esp + 0x180], 6
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
cmp eax, edx
je 0x40285a
push eax
call fcn.00490c9e
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4028db
cmp word [esi], 0
mov eax, esi
je 0x4028b6
lea ebx, [ebx]
movzx ecx, word [esi]
cmp cx, 0xd
je 0x402884
cmp cx, 0xa
je 0x402884
add esi, 2
jmp 0x4028b0
xor ecx, ecx
mov word [esi], cx
mov ecx, eax
lea edi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402890
sub ecx, edi
sar ecx, 1
je 0x4028ab
mov edx, dword [esp + 0x18]
push edx
call fcn.004031a0
add esi, 2
mov eax, esi
cmp word [esi], 0
jne 0x402870
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4028c0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4028c0
sub ecx, esi
sar ecx, 1
je 0x4028db
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004031a0
lea ecx, [esp + 0x1c]
call fcn.00406090
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x30]
call fcn.00425730
mov esi, 0x10
mov byte [esp + 0x180], 1
cmp dword [esp + 0x16c], esi
jb 0x402917
mov edx, dword [esp + 0x158]
push edx
call fcn.00490210
add esp, 4
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x48]
push esi
call fcn.00403270
mov byte [esp + 0x180], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esi + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40295b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0049021b
mov esp, ebp
pop ebp
ret