Function at 0x403902
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x648], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x660], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x64c], eax
xor eax, eax
mov edi, 0x208
push edi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test ebx, ebx
je 0x403981
xor eax, eax
cmp ax, word [ebx]
je 0x403981
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ebx, ebx
jmp 0x403997
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x640], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x634], ebx
mov byte [ebp - 0x629], 0
mov dword [ebp - 0x650], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x630], eax
cmp eax, ebx
jne 0x4039f4
xor al, al
jmp 0x403cfb
inc eax
push eax
call fcn.0042129f
pop ecx
mov dword [ebp - 0x638], eax
cmp eax, ebx
je 0x4039ed
mov eax, dword [ebp - 0x630]
inc eax
push eax
push ebx
push dword [ebp - 0x638]
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp - 0x638]
lea eax, [ebp - 0x41c]
push dword [ebp - 0x630]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403ce9
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x644]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x638]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403ce9
test dword [ebp - 0x640], 0xfffffffc
mov dword [ebp - 0x630], ebx
jbe 0x403ce9
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x630]
lea eax, [eax + ecx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push str.FileVersion
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x628]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x18
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x638]
mov dword [ebp - 0x634], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403adf
cmp dword [ebp - 0x63c], ebx
ja 0x403afb
mov eax, dword [ebp - 0x640]
inc dword [ebp - 0x630]
shr eax, 2
cmp dword [ebp - 0x630], eax
jb 0x403a7a
jmp 0x403ce9
xor eax, eax
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x63c], esi
ja 0x403b23
mov esi, dword [ebp - 0x63c]
push esi
push dword [ebp - 0x634]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x210]
mov dword [ebp - 0x634], eax
cmp word [ebp - 0x210], bx
je 0x403b71
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x403b63
push 0x2e
pop ecx
mov word [eax], cx
mov eax, dword [ebp - 0x634]
add eax, 2
mov dword [ebp - 0x634], eax
cmp word [eax], bx
jne 0x403b4f
mov edi, dword [sym.imp.MSVCR100.dll_wcschr]
lea eax, [ebp - 0x210]
push 0x2e
push eax
mov byte [ebp - 0x629], 0
call edi
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x403ce9
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll__wtol]
push 0x2e
mov dword [ebp - 0x658], eax
pop eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call edi
add esp, 0xc
cmp eax, ebx
je 0x403ce9
movzx ecx, word [eax]
cmp ecx, 0x30
jb 0x403bd5
cmp ecx, 0x39
jbe 0x403bda
add eax, 2
jmp 0x403bc8
mov dword [ebp - 0x630], eax
cmp word [eax], bx
je 0x403ce9
cmp word [eax], 0x30
mov esi, eax
jb 0x403c00
cmp word [esi], 0x39
ja 0x403c00
add esi, 2
cmp word [esi], 0x30
jae 0x403bf1
movzx ecx, word [esi]
cmp cx, bx
je 0x403ce9
mov ebx, ecx
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.MSVCR100.dll__wtol]
push 0x2e
push dword [ebp - 0x630]
mov dword [ebp - 0x65c], eax
mov word [esi], bx
call edi
add esp, 0xc
test eax, eax
je 0x403ce9
movzx ecx, word [eax]
test cx, cx
je 0x403ce9
cmp cx, 0x30
jb 0x403c50
cmp cx, 0x39
jbe 0x403c5b
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x403c44
cmp word [eax], 0
je 0x403ce9
cmp word [eax], 0x30
mov esi, eax
jb 0x403c7c
cmp word [esi], 0x39
ja 0x403c7c
add esi, 2
cmp word [esi], 0x30
jae 0x403c6d
mov edi, dword [sym.imp.MSVCR100.dll__wtol]
xor ecx, ecx
push eax
mov word [esi], cx
call edi
mov ebx, eax
lea eax, [esi + 2]
pop ecx
test eax, eax
je 0x403ca0
cmp word [eax], 0
je 0x403ca0
push eax
call edi
pop ecx
jmp 0x403ca6
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x403cb8
mov edx, dword [ebp - 0x658]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x660]
test ecx, ecx
je 0x403cca
mov edx, dword [ebp - 0x65c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x654]
test ecx, ecx
je 0x403cd6
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x403ce2
mov dword [ecx], eax
mov byte [ebp - 0x629], 1
push dword [ebp - 0x638]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov al, byte [ebp - 0x629]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret