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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479041
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x398], esi
mov ebx, ecx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x3a0], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x39c], edi
mov dword [ebp - 0x3ac], 0
test esi, esi
je 0x42a1b4
xor eax, eax
cmp ax, word [esi]
je 0x42a1b4
push eax
push eax
push 3
push eax
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x360], eax
cmp eax, 0xffffffff
jne 0x42a1dc
mov ecx, ebx
push 0x48da20
call fcn.00407540
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
mov dword [edi], 1
mov dword [ebp - 0x394], 0
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x42a201
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x36c], edi
mov dword [ebp - 4], 0
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x42a22b
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x364], eax
push 0
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x42a507
push 0x47c6a0
push esi
call fcn.0044e428
add esp, 8
mov dword [ebp - 0x374], eax
test eax, eax
jne 0x42a296
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00408df0
lea ecx, [ebp - 0x364]
call fcn.00407520
lea ecx, [ebp - 0x36c]
call fcn.00407520
jmp 0x42a1be
push eax
push esi
push 0
push dword [ebp - 0x398]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42a4bd
mov esi, dword [ebp - 0x374]
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0
push eax
push 0x48edf8
push esi
mov dword [ebp - 0x3a4], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42a31a
mov ecx, dword [ebp - 0x380]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x36c]
push str._d._d._d._d
push eax
call fcn.00415030
mov edi, dword [ebp - 0x36c]
add esp, 0x18
lea eax, [ebp - 0x370]
mov dword [ebp - 0x384], 0
push eax
lea eax, [ebp - 0x384]
mov dword [ebp - 0x370], 0
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor ecx, ecx
test dword [ebp - 0x370], 0xfffffffc
mov dword [ebp - 0x38c], ecx
jbe 0x42a4bd
xor eax, eax
mov word [ebp - 0x224], ax
mov eax, dword [ebp - 0x384]
lea ecx, [eax + ecx*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xLegalCopyright
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00428bf0
add esp, 0x14
mov dword [ebp - 0x388], 0
lea eax, [ebp - 0x3a0]
mov dword [ebp - 0x3a0], 0
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42a499
push dword [ebp - 0x388]
mov ebx, dword [ebp - 0x3a8]
mov ecx, ebx
call fcn.004076d0
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004087c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x368], esi
mov byte [ebp - 4], 2
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x42a4fd
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x42a424
push ebx
lea ecx, [ebp - 0x368]
call fcn.004080e0
mov esi, dword [ebp - 0x368]
lea eax, [ebx + 1]
push eax
push esi
call fcn.0045ed40
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x42a4fd
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jl 0x42a463
push str.microsoft
push esi
call fcn.0045142b
add esp, 8
test eax, eax
je 0x42a463
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x42a4e2
cmp dword [esi - 0xc], 0
jl 0x42a484
push str.tencent
push esi
call fcn.0045142b
add esp, 8
test eax, eax
je 0x42a484
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x42a4e2
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 1
call fcn.00407520
mov esi, dword [ebp - 0x374]
mov ecx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x370]
inc ecx
shr eax, 2
mov dword [ebp - 0x38c], ecx
cmp ecx, eax
jb 0x42a360
mov ebx, dword [ebp - 0x390]
push dword [ebp - 0x374]
call fcn.0044e423
add esp, 4
cmp dword [ebp - 0x394], 0
je 0x42a507
mov ecx, dword [ebp - 0x39c]
mov dword [ecx], 0
jmp 0x42a525
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x394], 1
mov byte [ebp - 4], 1
call fcn.00407520
jmp 0x42a4b7
push 0x80070057
call fcn.004064f0
mov edx, dword [ebp - 0x37c]
mov ecx, dword [ebp - 0x398]
call fcn.00430ca0
mov ecx, dword [ebp - 0x39c]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x378]
push 0
push eax
push 0x40
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x360]
call esi
test eax, eax
je 0x42a62b
cmp dword [ebp - 0x378], 0x40
jne 0x42a62b
push 0
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x378]
push eax
push 0xf8
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x360]
call esi
test eax, eax
je 0x42a62b
cmp dword [ebp - 0x378], 0xf8
jne 0x42a62b
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x37c]
push eax
call fcn.004626bb
add esp, 4
test eax, eax
je 0x42a60b
movups xmm1, xmmword [eax]
movups xmm2, xmmword [eax + 0x10]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
push eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
push eax
movd eax, xmm0
push eax
movd eax, xmm1
push eax
movd eax, xmm2
psrldq xmm2, 4
inc eax
push eax
movd eax, xmm2
add eax, 0x76c
push eax
jmp 0x42a617
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x364]
push str.__04d__02d__02d__02d:_02d:_02d_GMT
push eax
call fcn.00415030
add esp, 0x20
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x364]
mov ecx, ebx
push eax
lea edx, [ebp - 0x36c]
call fcn.004124d0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x364]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42a672
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x42a1be
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42a1be