Function at 0x41f12e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x648], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x658], eax
mov eax, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.00439ae0
add esp, 0xc
test edi, edi
je 0x41f1a3
xor eax, eax
cmp ax, word [edi]
je 0x41f1a3
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x41f1b7
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x628]
mov dword [ebp - 0x640], ebx
push ebx
push eax
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x63c], ebx
call fcn.00439ae0
add esp, 0xc
mov dword [ebp - 0x630], ebx
lea eax, [ebp - 0x41c]
mov byte [ebp - 0x629], bl
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x41f204
xor al, al
jmp 0x41f4df
lea eax, [edi + 1]
push eax
call fcn.0043833f
pop ecx
mov ecx, eax
mov dword [ebp - 0x638], ecx
test ecx, ecx
je 0x41f1fd
lea eax, [edi + 1]
push eax
push ebx
push ecx
call fcn.00439ae0
add esp, 0xc
lea eax, [ebp - 0x41c]
push dword [ebp - 0x638]
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41f4cd
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x640]
push eax
push 0x474f58
push dword [ebp - 0x638]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41f4cd
test dword [ebp - 0x63c], 0xfffffffc
mov edi, ebx
jbe 0x41f4cd
mov ecx, dword [ebp - 0x640]
push str.FileVersion
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.004208e1
add esp, 0x18
mov dword [ebp - 0x630], ebx
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x638]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41f2d9
cmp dword [ebp - 0x634], ebx
ja 0x41f2ec
mov eax, dword [ebp - 0x63c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x41f27c
jmp 0x41f4cd
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00439ae0
cmp dword [ebp - 0x634], esi
lea eax, [ebp - 0x210]
cmovb esi, dword [ebp - 0x634]
push esi
push dword [ebp - 0x630]
push 0x105
push eax
call fcn.0043df0d
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x630], eax
push 0x2e
pop edi
cmp word [ebp - 0x210], bx
je 0x41f35d
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x41f34f
mov word [eax], di
mov eax, dword [ebp - 0x630]
add eax, 2
mov dword [ebp - 0x630], eax
cmp word [eax], bx
jne 0x41f33e
lea eax, [ebp - 0x210]
mov byte [ebp - 0x629], bl
push edi
push eax
call fcn.00439ced
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41f4cd
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.0043f03e
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x210]
push edi
push eax
mov word [esi], di
call fcn.00439ced
add esp, 0xc
test eax, eax
je 0x41f4cd
push 0x30
pop edx
push 0x39
pop esi
movzx ecx, word [eax]
cmp cx, dx
jb 0x41f3c1
cmp cx, si
jbe 0x41f3c6
add eax, 2
jmp 0x41f3b4
movzx ecx, word [eax]
mov dword [ebp - 0x644], eax
test cx, cx
je 0x41f4cd
mov edi, eax
cmp cx, dx
jb 0x41f3ec
cmp word [edi], si
ja 0x41f3ec
add edi, 2
cmp word [edi], dx
jae 0x41f3df
movzx ecx, word [edi]
test cx, cx
je 0x41f4cd
mov esi, ecx
xor ecx, ecx
push eax
mov word [edi], cx
call fcn.0043f03e
push 0x2e
push dword [ebp - 0x644]
mov dword [ebp - 0x654], eax
mov word [edi], si
call fcn.00439ced
add esp, 0xc
test eax, eax
je 0x41f4cd
movzx ecx, word [eax]
test cx, cx
je 0x41f4cd
push 0x30
pop edx
push 0x39
pop edi
cmp cx, dx
jb 0x41f442
cmp cx, di
jbe 0x41f44d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41f438
movzx ecx, word [eax]
test cx, cx
je 0x41f4cd
mov esi, eax
cmp cx, dx
jb 0x41f469
cmp word [esi], di
ja 0x41f469
add esi, 2
cmp word [esi], dx
jae 0x41f45c
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.0043f03e
mov edi, eax
pop ecx
add esi, 2
je 0x41f48a
cmp word [esi], bx
je 0x41f48a
push esi
call fcn.0043f03e
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x41f49c
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x650]
test ecx, ecx
je 0x41f4ae
mov eax, dword [ebp - 0x654]
mov dword [ecx], eax
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x41f4ba
mov dword [eax], edi
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x41f4c6
mov dword [eax], ebx
mov byte [ebp - 0x629], 1
push dword [ebp - 0x638]
call fcn.00438348
mov al, byte [ebp - 0x629]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043834d
mov esp, ebp
pop ebp
ret