Function at 0x42515a
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 0x4251cf
xor eax, eax
cmp ax, word [edi]
je 0x4251cf
mov esi, 0x104
lea eax, [ebp - 0x41c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4251e3
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 0x425230
xor al, al
jmp 0x42550b
lea eax, [edi + 1]
push eax
call fcn.0043833f
pop ecx
mov ecx, eax
mov dword [ebp - 0x638], ecx
test ecx, ecx
je 0x425229
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 0x4254f9
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 0x4254f9
test dword [ebp - 0x63c], 0xfffffffc
mov edi, ebx
jbe 0x4254f9
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 0x425305
cmp dword [ebp - 0x634], ebx
ja 0x425318
mov eax, dword [ebp - 0x63c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x4252a8
jmp 0x4254f9
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 0x425389
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x42537b
mov word [eax], di
mov eax, dword [ebp - 0x630]
add eax, 2
mov dword [ebp - 0x630], eax
cmp word [eax], bx
jne 0x42536a
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 0x4254f9
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 0x4254f9
push 0x30
pop edx
push 0x39
pop esi
movzx ecx, word [eax]
cmp cx, dx
jb 0x4253ed
cmp cx, si
jbe 0x4253f2
add eax, 2
jmp 0x4253e0
movzx ecx, word [eax]
mov dword [ebp - 0x644], eax
test cx, cx
je 0x4254f9
mov edi, eax
cmp cx, dx
jb 0x425418
cmp word [edi], si
ja 0x425418
add edi, 2
cmp word [edi], dx
jae 0x42540b
movzx ecx, word [edi]
test cx, cx
je 0x4254f9
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 0x4254f9
movzx ecx, word [eax]
test cx, cx
je 0x4254f9
push 0x30
pop edx
push 0x39
pop edi
cmp cx, dx
jb 0x42546e
cmp cx, di
jbe 0x425479
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x425464
movzx ecx, word [eax]
test cx, cx
je 0x4254f9
mov esi, eax
cmp cx, dx
jb 0x425495
cmp word [esi], di
ja 0x425495
add esi, 2
cmp word [esi], dx
jae 0x425488
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.0043f03e
mov edi, eax
pop ecx
add esi, 2
je 0x4254b6
cmp word [esi], bx
je 0x4254b6
push esi
call fcn.0043f03e
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x4254c8
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x650]
test ecx, ecx
je 0x4254da
mov eax, dword [ebp - 0x654]
mov dword [ecx], eax
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x4254e6
mov dword [eax], edi
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x4254f2
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 0x14