Function at 0x547580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x729341
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x450]
push eax
call fcn.00516930
add esp, 4
push 0x12
push str.NeteaseFAddins.exe
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0
call fcn.0044ef80
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
lea ecx, [ebp - 0x550]
cmovae eax, dword [ebp - 0x450]
push 0xfde9
mov dword [ebp - 0x554], ecx
lea ecx, [ebp - 0x554]
push eax
call fcn.004d3aa0
mov edx, dword [ebp - 0x554]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x438], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547640
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.004da1e0
mov eax, dword [ebp - 0x554]
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x547679
push eax
call fcn.006fa47e
add esp, 4
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push 0x738298
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x218]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x54790d
push esi
call fcn.006f4bad
add esp, 4
mov edi, eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x584], edi
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x558]
mov dword [ebp - 0x558], 0
push eax
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x55c], 0
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x55c]
xor ecx, ecx
test dword [ebp - 0x558], 0xfffffffc
mov dword [ebp - 0x580], edx
mov dword [ebp - 0x56c], ecx
jbe 0x5478e6
movzx eax, word [edx + ecx*4 + 2]
push eax
movzx eax, word [edx + ecx*4]
push eax
lea eax, [ebp - 0x420]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x560], 0
lea eax, [ebp - 0x570]
mov dword [ebp - 0x570], 0
push eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x5479cd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x564], eax
push dword [ebp - 0x560]
lea eax, [ebp - 0x564]
mov byte [ebp - 4], 4
push 0x738298
push eax
call fcn.004d2360
mov esi, dword [ebp - 0x564]
add esp, 0xc
mov eax, dword [ebx]
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x568], esi
sar ecx, 1
mov edx, dword [esi - 0xc]
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x578], ecx
mov dword [ebp - 0x574], edi
test edx, edx
js 0x5479c3
push edx
push esi
call fcn.006fbebc
mov ecx, closesocket
mov dword [ebp - 0x57c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x5479c3
add edi, eax
js 0x5479c3
mov edx, dword [ebx]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x54782e
push edi
mov ecx, ebx
call fcn.004d5ad0
mov edx, dword [ebx]
mov eax, dword [ebp - 0x574]
mov ecx, dword [ebp - 0x578]
cmp ecx, eax
ja 0x547847
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x568], ecx
mov ecx, dword [ebp - 0x57c]
lea eax, [edx + eax*2]
add ecx, ecx
je 0x54788a
test eax, eax
je 0x54787a
mov edx, dword [ebp - 0x568]
push ecx
test edx, edx
je 0x54786f
push edx
push eax
call fcn.006f6ff0
add esp, 0xc
jmp 0x54788a
push 0
push eax
call fcn.006f7570
add esp, 0xc
call fcn.006fba38
mov dword [eax], 0x16
call fcn.006fb95e
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x5479c3
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov word [eax + edi*2], cx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5478bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x56c]
mov eax, dword [ebp - 0x558]
inc ecx
mov edx, dword [ebp - 0x580]
mov edi, dword [ebp - 0x584]
shr eax, 2
mov dword [ebp - 0x56c], ecx
cmp ecx, eax
jb 0x547732
push 0x7382a0
push 0x7382a4
mov ecx, ebx
call fcn.004d8320
push 0x7382a0
push 0x7403b8
mov ecx, ebx
call fcn.004d8320
mov esi, 1
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x54794d
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x547943
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5479be
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov edx, dword [ebp - 0x43c]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 0x10
jb 0x5479a0
mov ecx, dword [ebp - 0x450]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x547996
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5479be
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
call fcn.006fb96e
push 0x80070057
call fcn.004cf5d0
push 0x80004005
call fcn.004cf5d0
int3