Function at 0x41c893
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, esi
mov edx, 0x104
neg eax
push 1
sbb eax, eax
and eax, 0x104
add edx, eax
push edx
push 7
mov dword [ebp - 8], edx
xor edx, edx
pop ecx
call fcn.0041ad96
mov edi, eax
test edi, edi
je 0x41ca91
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x41caa3
mov edx, dword [ebp - 8]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x41c8bc
lea eax, [ebp - 0x1c]
push eax
push edi
push 1
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41c935
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41caa3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41caa3
push 0x57
jmp 0x41ca9d
add eax, 0xa
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.0041c508
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x41caa3
push esi
push dword [ebp - 8]
push 0
push edi
push 3
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
je 0x41cb2a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x403360
push esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x41cb2a
push 1
push 0x40
push 7
xor edx, edx
pop ecx
call fcn.0041ad96
and dword [ebp - 4], 0
mov edx, eax
xor edi, edi
mov dword [ebp - 0x18], edx
test dword [ebp - 0x10], 0xfffffffc
jbe 0x41cb2a
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
push 0x403398
push 0x40
push edx
call fcn.0041c78c
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
jne 0x41c9f1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
inc edi
shr eax, 2
mov dword [ebp - 4], ecx
cmp edi, eax
jb 0x41c9a8
jmp 0x41c9f4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41cb2a
call fcn.0041bcfd
cmp eax, 4
ja 0x41ca23
lea ecx, [ebp - 0xc]
call fcn.0041c464
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41caa3
push 0x42b
jmp 0x41ca9d
mov ecx, dword [ebp - 4]
mov edi, 0x4033e4
push 0
push 1
mov edx, edi
call fcn.0041b7c4
cmp eax, 0xffffffff
je 0x41ca58
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ecx, dword [ebp - 4]
sub esi, eax
xor eax, eax
mov word [ecx + esi*2], ax
test ebx, ebx
je 0x41cac1
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
push 1
add esi, 0xb
xor edx, edx
add eax, esi
push eax
push 7
pop ecx
mov dword [ebp - 8], eax
call fcn.0041ad96
mov esi, eax
test esi, esi
jne 0x41caaa
lea ecx, [ebp - 0xc]
call fcn.0041c464
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x41caa3
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push ebx
push dword [ebp - 4]
push 0x4033f0
push dword [ebp - 8]
push esi
call fcn.0041c78c
add esp, 0x14
jmp 0x41cae4
mov edx, dword [ebp - 4]
test edx, edx
jne 0x41cad2
push 7
pop ecx
call fcn.0041ad4a
jmp 0x41cade
push 0
push 0
push 7
pop ecx
call fcn.0041ad96
mov esi, eax
test esi, esi
je 0x41ca89
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharUpperW]
push 1
push 0x50
push 0xb
xor edx, edx
pop ecx
call fcn.0041ad96
mov esi, eax
test esi, esi
je 0x41ca89
push dword [ebp - 4]
mov ecx, 0x15ed
call fcn.0041b2d7
push eax
push 0x50
push esi
call fcn.0041c78c
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.0041c464
mov eax, esi
jmp 0x41caa5
lea ecx, [ebp - 0xc]
call fcn.0041c464
jmp 0x41caa3