Function at 0x402e12
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push edi
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x104
mov eax, ebx
mov edx, esi
neg eax
sbb eax, eax
and eax, esi
push 1
add edx, eax
push ebx
push 7
mov eax, edx
mov dword [ebp - 8], edx
call fcn.004019f8
mov edi, eax
test edi, edi
je 0x40a292
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40308b
mov edx, dword [ebp - 8]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x402e3e
lea eax, [ebp - 0x1c]
push eax
push edi
push 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov dword [ebp - 8], eax
test eax, eax
je 0x40a212
add eax, 0xa
push eax
mov dword [ebp - 8], eax
call fcn.0040155a
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40308b
push esi
push dword [ebp - 8]
push ebx
push edi
push 3
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x403074
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x403094
push esi
call ebx
test eax, eax
je 0x403074
push 1
push 0
push 7
push 0x40
pop eax
call fcn.004019f8
and dword [ebp - 4], 0
mov edx, eax
xor edi, edi
test dword [ebp - 0x10], 0xfffffffc
mov dword [ebp - 0x18], edx
jbe 0x403074
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
push 0x4030c8
push 0x40
push edx
call fcn.00404c87
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push esi
call ebx
test eax, eax
je 0x40a230
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x403074
push ecx
call fcn.00401843
cmp eax, 4
jbe 0x40a24c
mov esi, dword [ebp - 4]
push 0
push 1
mov ebx, 0x403114
call fcn.00403123
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, reloc.KERNEL32.dll_VerSetConditionMask
je 0x402f86
push dword [ebp - 4]
call edi
push ebx
mov esi, eax
call edi
mov ecx, dword [ebp - 4]
sub esi, eax
xor eax, eax
mov word [ecx + esi*2], ax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a269
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a2c7
call fcn.004019b6
test eax, eax
je 0x40308f
push 3
pop ecx
call fcn.00401426
mov esi, eax
cmp esi, 7
jbe 0x40a2d5
push 7
call fcn.0040185e
test eax, eax
je 0x40a32f
push 7
call fcn.00401ace
mov edi, eax
test edi, edi
je 0x40308f
push 7
push 0x40100c
push edi
call dword [sym.imp.msvcrt.dll__memicmp]
add esp, 0xc
test eax, eax
jne 0x40308f
push ebx
call fcn.00401843
mov ecx, dword [edi + 8]
lea esi, [eax + 1]
cmp esi, ecx
ja 0x40a30f
cmp esi, 0x100
ja 0x40a304
cmp dword [edi + 0xc], 0
je 0x40308f
mov ecx, dword [edi + 0xc]
mov edx, ebx
call fcn.00401d74
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40307e
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_CharUpperW]
push 1
push 0
push 0xb
push 0x50
pop eax
call fcn.004019f8
mov edi, eax
test edi, edi
je 0x40307e
push dword [ebp - 4]
push 0x15ed
call fcn.00401b33
push eax
push 0x50
push edi
call fcn.00404c87
add esp, 0x10
lea esi, [ebp - 0xc]
call fcn.004016c7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
lea esi, [ebp - 0xc]
call fcn.004016c7
jmp 0x40308b
lea esi, [ebp - 0xc]
call fcn.004016c7
jmp 0x40a292
xor eax, eax
jmp 0x40306d
xor esi, esi
jmp 0x403028
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x40308b
call esi
test eax, eax
jne 0x40308b
push 0x57
jmp 0x40a2a2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
inc edi
shr eax, 2
mov dword [ebp - 4], ecx
cmp edi, eax
jae 0x402f3e
jmp 0x402f07
lea esi, [ebp - 0xc]
call fcn.004016c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40308b
push 0x42b
jmp 0x40a2a2
push dword [ebp - 4]
call edi
push ebx
mov esi, eax
call edi
push 1
add esi, 0xb
push 0
add eax, esi
push 7
mov dword [ebp - 8], eax
call fcn.004019f8
mov esi, eax
test esi, esi
je 0x40307e
jmp 0x40a2ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40308b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40308b
push ebx
push dword [ebp - 4]
push 0x4037c0
push dword [ebp - 8]
push esi
call fcn.00404c87
add esp, 0x14
jmp 0x40302c
push 7
call fcn.0040c759
mov esi, eax
jmp 0x403028
mov edx, dword [0x411014]
push 3
pop ecx
call fcn.00401b0a
test eax, eax
je 0x40308f
push 8
pop ecx
sub ecx, esi
push ecx
call fcn.004015d5
cmp eax, reloc.KERNEL32.dll_VerSetConditionMask
jne 0x402fbc
jmp 0x40308f
lea eax, [esi + esi]
cmp eax, ecx
jae 0x403015
lea eax, [esi + esi]
push eax
test ecx, ecx
jne 0x40a377
call fcn.0040155a
mov dword [edi + 0xc], eax
test eax, eax
je 0x40308f
mov dword [edi + 8], esi
jmp 0x403015
push 0x10
call fcn.0040155a
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x40308f
and dword [edi + 8], 0
and dword [edi + 0xc], 0
push 7
pop esi
mov edx, 0x40100c
mov ecx, edi
call fcn.004043a7
push esi
mov esi, edi
call fcn.00405c72
test eax, eax
jne 0x402fdc
lea esi, [ebp + 8]
call fcn.004016c7
jmp 0x40308f
lea ecx, [edi + 0xc]
call fcn.00402781
jmp 0x40a31f