Function at 0x4124c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5907b5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fcff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 1
call fcn.004232cc
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x412874
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 4
call fcn.004232cc
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x41287e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x208
mov byte [ebp - 4], 5
call fcn.0042651d
mov ebx, eax
mov dword [ebp - 0x28], ebx
xor eax, eax
mov byte [ebp - 4], 6
push 0x1c
mov word [ebx], ax
call fcn.00417cca
add esp, 8
mov edi, eax
push 0x1c
push edi
push 0x411860
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412577
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
jmp 0x41257e
mov dword [ebp - 0x14], 0
test edi, edi
je 0x41258d
push 0x1c
push edi
call fcn.00561389
add esp, 8
push 0x104
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41264c
push eax
call fcn.0042651d
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
push edi
push dword [ebp - 0x14]
mov byte [ebp - 4], 7
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41263f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5dcb30
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41263f
mov eax, dword [ebp - 0x18]
movzx ebx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ebx
mov ebx, dword [ebp - 0x28]
push edx
push ecx
push eax
push str.V_d._d._d._d
push ebx
call fcn.004159b0
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412626
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00407b80
test edi, edi
je 0x41264c
push edi
call fcn.00426526
add esp, 4
push ebx
mov byte [ebp - 4], 5
call fcn.00426526
mov eax, dword [ebp - 0x20]
add esp, 4
or ebx, 0xffffffff
cmp dword [eax + 0x2ac8], 0
push 0
push 0
push ebx
je 0x4126b1
push str.VCI_Management_Tool
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x4126ab
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x4126a0
push edi
lea ecx, [ebp - 0x10]
call fcn.00407f40
mov esi, dword [ebp - 0x10]
push edi
push esi
push 0xffffffffffffffff
push str.VCI_Management_Tool
jmp 0x4126ed
mov byte [ebp - 4], 8
jmp 0x41270f
push 0x5dca30
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x41270b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x4126e4
push edi
lea ecx, [ebp - 0x10]
call fcn.00407f40
mov esi, dword [ebp - 0x10]
push edi
push esi
push 0xffffffffffffffff
push 0x5dca30
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x41286a
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x412763
mov byte [ebp - 4], 9
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov edi, dword [edx]
je 0x41275f
mov eax, dword [edx + 0xc]
lea ecx, [edx + 0xc]
shr eax, 0x1f
test al, al
je 0x41273f
cmp dword [edx + 8], 0
jl 0x41286a
xor eax, eax
mov dword [edx + 4], 0
mov word [esi], ax
jmp 0x41275f
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412752
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
mov ebx, edi
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx - 0xc]
sub ebx, esi
sar ebx, 1
test ecx, ecx
js 0x41286a
push ecx
push edi
call fcn.0056ee97
mov edx, eax
mov ecx, closesocket
mov eax, dword [ebp - 0x14]
sub ecx, edx
add esp, 8
mov dword [ebp - 0x18], edx
cmp ecx, eax
jl 0x41286a
lea ecx, [eax + edx]
test ecx, ecx
js 0x41286a
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or edx, eax
jge 0x4127c6
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407f40
mov esi, dword [ebp - 0x10]
lea eax, [esi + ebx*2]
cmp ebx, dword [ebp - 0x14]
jbe 0x4127d0
mov eax, edi
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea ecx, [esi + ebx*2]
add edx, edx
je 0x41280d
test ecx, ecx
je 0x4127fd
push edx
test eax, eax
je 0x4127f2
push eax
push ecx
call fcn.005641f0
add esp, 0xc
jmp 0x41280d
push 0
push ecx
call fcn.00564770
add esp, 0xc
call fcn.0056cb10
mov dword [eax], 0x16
call fcn.00567a5f
mov eax, dword [ebp - 0x18]
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x41286a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x20]
push esi
call fcn.00420a94
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412843
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412858
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00407ff0
push 0x80004005
call fcn.00407ff0
push 0x80004005
call fcn.00407ff0
int3