Function at 0x402c60
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555586
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00543120
mov eax, dword [0x5b3680]
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 edi, edx
mov dword [ebp - 0x1038], edi
mov ebx, ecx
mov dword [ebp - 0x1024], ebx
push 0x100
lea eax, [ebp - 0x620]
push eax
push 0x100
lea eax, [ebp - 0x420]
push eax
push 0x100
lea eax, [ebp - 0x820]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00529c6e
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00529e68
add esp, 0x30
lea eax, [ebp - 0x1048]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x402d42
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x1048]
mov dword [ebp - 0x1030], ebx
push dword [ebp - 0x1024]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x402d62
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push SysReAllocString
lea eax, [ebp - 0x220]
mov edx, 0x400
push eax
push ecx
mov ecx, edi
call fcn.00402c10
xor eax, eax
jmp 0x402f35
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x103c]
push eax
push 0x581ad4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402d31
xor edx, edx
mov ecx, 0x409
xor esi, esi
mov dword [ebp - 0x1040], ecx
test dword [ebp - 0x1034], 0xfffffffc
mov dword [ebp - 0x1024], edx
jbe 0x402e2f
jmp 0x402db0
mov eax, dword [ebp - 0x103c]
lea ebx, [eax + esi*4]
movzx eax, word [ebx]
mov edi, eax
mov dword [ebp - 0x18], eax
and edi, 0x3ff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp di, ax
je 0x402e14
cmp di, 9
jne 0x402df8
mov eax, dword [ebp - 0x18]
movzx edx, word [ebx + 2]
movzx ecx, ax
mov dword [ebp - 0x1040], ecx
mov dword [ebp - 0x1024], edx
jmp 0x402e04
mov ecx, dword [ebp - 0x1040]
mov edx, dword [ebp - 0x1024]
mov eax, dword [ebp - 0x1034]
inc esi
shr eax, 2
cmp esi, eax
jb 0x402db0
jmp 0x402e23
mov eax, dword [ebp - 0x103c]
movzx ecx, word [eax + esi*4]
movzx edx, word [eax + esi*4 + 2]
mov edi, dword [ebp - 0x1038]
mov ebx, dword [ebp - 0x1030]
movzx eax, dx
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x1020]
push 0x400
push eax
call fcn.00402bb0
add esp, 0x14
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1020]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x402e9b
lea edx, [ebp - 0x220]
mov ecx, edx
mov dword [ebp - 0x102c], edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402e81
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x1044], eax
jmp 0x402ea1
mov edx, dword [ebp - 0x102c]
push edx
lea ecx, [ebp - 0x1028]
call fcn.004031c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1028]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x402ed5
push esi
lea ecx, [ebp - 0x1028]
call fcn.004024c0
mov eax, dword [ebp - 0x1028]
lea ecx, [esi + esi]
shr ecx, 1
cmp ecx, 0x7ffffffe
jbe 0x402ee9
xor eax, eax
mov word [edi], ax
jmp 0x402ef8
push ecx
push eax
push ecx
mov edx, 0x400
mov ecx, edi
call fcn.00402c10
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1028]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.005295e2
mov esp, ebp
pop ebp
ret