Function at 0x446410
Capabilities:
Get file size
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1ac]
call fcn.00402be0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.004080f0
push eax
mov ecx, 0x4fac48
call fcn.00406d60
mov edx, dword [ebp - 0x180]
cmp edx, 0x10
jb 0x4464a1
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x446497
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446b2a
push edx
push ecx
call fcn.0044bf44
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
cmp edx, 8
jb 0x446503
mov ecx, dword [ebp - 0x1ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4464f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446b2f
push edx
push ecx
call fcn.0044bf44
add esp, 8
mov ecx, 0x508348
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446510
sub ecx, edx
push ecx
push 0x508348
mov ecx, 0x4fac60
call fcn.00407000
cmp dword [0x4fadec], 8
mov edi, 0x4fadd8
jb 0x446545
mov edi, dword [0x4fadd8]
test edi, edi
je 0x446669
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x178], eax
test eax, eax
je 0x446669
push eax
call fcn.0044bf52
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x178]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x446660
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x4e0aa8
push esi
call edi
test eax, eax
je 0x446660
mov eax, dword [ebp - 0x16c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x158], xmm0
movups xmm0, xmmword [eax + 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x4e0aac
push esi
movups xmmword [ebp - 0x148], xmm0
call edi
cmp dword [ebp - 0x18c], 0xfeef04bd
jne 0x446669
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a4b20
mov ecx, dword [ebp - 0x154]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x158]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x114]
push ecx
push str._d._d._d._d
push eax
call fcn.004094e0
lea ecx, [ebp - 0x114]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446645
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, 0x4faca8
call fcn.00407000
push esi
call fcn.0044b7e6
add esp, 4
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
push 0x400
mov dword [ebp - 4], 1
call fcn.0044bf52
mov esi, eax
add esp, 4
mov dword [ebp - 0x11c], esi
test esi, esi
je 0x4468e5
push 0x400
push 0
push esi
call fcn.004a4b20
add esp, 0xc
mov ecx, 0x4fadd8
cmp dword [0x4fadec], 8
cmovae ecx, dword [0x4fadd8]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x178], eax
cmp eax, 0xffffffff
je 0x4468d5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x118], eax
call esi
push 0
mov edi, eax
call esi
mov ecx, dword [edi + 0x3c]
lea esi, [eax + 0xf8]
mov edx, dword [ecx + eax + 0x54]
add esi, ecx
movzx eax, word [ecx + eax + 6]
mov dword [ebp - 0x174], edx
xor edx, edx
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x16c], eax
test eax, eax
je 0x4467fd
cmp eax, 8
jb 0x4467fd
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
lea eax, [esi + 0x60]
xorps xmm5, xmm5
nop word [eax + eax]
movd xmm2, dword [eax + 0x28]
lea eax, [eax + 0x140]
movd xmm0, dword [eax - 0x140]
add edx, 8
movd xmm1, dword [eax - 0x168]
movd xmm3, dword [eax - 0x190]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0xa0]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x78]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0xc8]
paddd xmm4, xmm3
movd xmm3, dword [eax - 0xf0]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
paddd xmm5, xmm3
cmp edx, ecx
jl 0x446760
mov ecx, dword [ebp - 0x174]
paddd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
paddd xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
paddd xmm4, xmm0
movd eax, xmm4
add ecx, eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x174], ecx
jmp 0x446803
mov ecx, dword [ebp - 0x174]
xor esi, esi
xor edi, edi
cmp edx, eax
jge 0x446863
sub eax, edx
cmp eax, 2
jl 0x446843
mov ecx, dword [ebp - 0x17c]
lea eax, [edx*4 + 7]
add eax, edx
lea eax, [ecx + eax*8]
mov ecx, dword [ebp - 0x16c]
sub ecx, edx
sub ecx, 2
shr ecx, 1
inc ecx
lea edx, [edx + ecx*2]
add esi, dword [eax - 0x28]
lea eax, [eax + 0x50]
add edi, dword [eax - 0x50]
sub ecx, 1
jne 0x446835
mov ecx, dword [ebp - 0x174]
cmp edx, dword [ebp - 0x16c]
jge 0x44685e
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x17c]
add ecx, dword [edx + eax*8 + 0x10]
lea eax, [esi + edi]
add ecx, eax
mov eax, dword [ebp - 0x118]
mov edi, dword [ebp - 0x178]
sub eax, ecx
cmp eax, 0x32
jbe 0x4468c8
push 0
push 0
push ecx
push edi
mov dword [ebp - 0x118], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4468b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x134]
call fcn.00407000
jmp 0x4468ce
mov esi, dword [ebp - 0x11c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0044b7e6
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x124]
mov byte [ebp - 0x16d], 0
test ecx, ecx
jne 0x446918
push 0x80
push str.P0CGR_rsIdJ9NBbLTtVAbyA1S6Hx_1ZhIAcTK_jjrCJgZmKQ3eT6GbPdVziF7PRgLtFhwR1jqzRfSWRm114aRJWROHwZfGEgWF2KG2sNnuFj8SrWUKtIzUxYkMnskGjK
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x16d], 1
call fcn.00407000
mov ecx, dword [ebp - 0x124]
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push ecx
cmovae eax, dword [ebp - 0x134]
mov ecx, 0x4fae08
push eax
call fcn.00407000
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x118]
push 1
push 0
push 0
push ecx
push dword [ebp - 0x124]
lea eax, [ebp - 0x134]
mov dword [ebp - 0x118], 0
cmovae eax, dword [ebp - 0x134]
push eax
call fcn.0044dff0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x446a5f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446981
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x134]
call fcn.00407000
push esi
call fcn.0044e200
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x14c], xmm0
mov dword [ebp - 0x14c], 0
movq qword [ebp - 0x13c], xmm0
movups xmmword [ebp - 0x15c], xmm0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x15c]
push 0
cmovae eax, dword [ebp - 0x134]
push eax
call fcn.004056b0
test al, al
je 0x446a50
push 0x4fac30
push str.channel_id
lea ecx, [ebp - 0x15c]
call fcn.00405f00
push 0x4fac78
push str.username
lea ecx, [ebp - 0x15c]
call fcn.00405f00
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 1
call fcn.00405620
cmp byte [ebp - 0x16d], 0
je 0x446ad9
push 0x28
call fcn.0044bc97
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x118], esi
add esp, 4
mov ecx, esi
movups xmmword [esi], xmm0
push 1
movups xmmword [esi + 0x10], xmm0
push str.ecode
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00406080
push 0
push str.result
mov ecx, esi
call fcn.00406080
mov ecx, esi
call fcn.00442950
mov edx, dword [ebp - 0x120]
cmp edx, 0x10
jb 0x446b0f
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x446b05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446b34
push edx
push ecx
call fcn.0044bf44
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
call fcn.004aba6c
call fcn.004aba6c
call fcn.004aba6c
int3