Function at 0x10001874
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x100018ba
cmp word [eax], bx
je 0x100018ba
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x100018ce
mov esi, 0x104
lea eax, [ebp - 0x440]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x82
xor eax, eax
and byte [ebp + 0x1b], al
lea edi, [ebp - 0x64a]
mov word [ebp - 0x64c], bx
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x1000191a
lea eax, [edi + 1]
push eax
call sub.MFC42u.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x10001921
xor al, al
jmp 0x10001b7c
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x440]
push dword [ebp - 8]
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10001b70
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10001b70
xor edi, edi
test dword [ebp - 0x10], 0xfffffffc
jbe 0x10001b70
mov eax, dword [ebp - 0x14]
push 0x1005c148
movzx ecx, word [eax + edi*4 + 2]
lea eax, [eax + edi*4]
push ecx
movzx eax, word [eax]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x64c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100019c4
cmp dword [ebp - 0xc], ebx
ja 0x100019d4
mov eax, dword [ebp - 0x10]
inc edi
shr eax, 2
cmp edi, eax
jb 0x10001976
jmp 0x10001b70
mov ecx, 0x82
xor eax, eax
cmp dword [ebp - 0xc], esi
lea edi, [ebp - 0x232]
mov word [ebp - 0x234], bx
rep stosd dword es:[edi], eax
ja 0x100019f2
mov esi, dword [ebp - 0xc]
push esi
lea eax, [ebp - 0x234]
push dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
cmp word [ebp - 0x234], bx
lea eax, [ebp - 0x234]
mov dword [ebp - 4], eax
je 0x10001a30
cmp word [eax], 0x2c
jne 0x10001a26
mov word [eax], 0x2e
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp word [eax], bx
jne 0x10001a18
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
and byte [ebp + 0x1b], 0
lea eax, [ebp - 0x234]
push 0x2e
push eax
call edi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x10001b70
lea eax, [ebp - 0x234]
mov word [esi], bx
mov ebx, dword [sym.imp.MSVCRT.dll__wtol]
push eax
call ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x234]
push 0x2e
push eax
mov word [esi], 0x2e
call edi
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10001b70
mov cx, word [eax]
cmp cx, 0x30
jb 0x10001a93
cmp cx, 0x39
jbe 0x10001a97
inc eax
inc eax
jmp 0x10001a84
mov cx, word [eax]
mov dword [ebp - 0x18], eax
test cx, cx
je 0x10001b70
mov esi, eax
cmp cx, 0x30
jb 0x10001abb
cmp cx, 0x39
ja 0x10001abb
inc esi
inc esi
mov cx, word [esi]
jmp 0x10001aa8
mov cx, word [esi]
test cx, cx
mov dword [ebp - 0x1c], ecx
je 0x10001b70
and word [esi], 0
push eax
call ebx
push 0x2e
mov dword [ebp - 0x20], eax
mov ax, word [ebp - 0x1c]
push dword [ebp - 0x18]
mov word [esi], ax
call edi
add esp, 0xc
test eax, eax
je 0x10001b70
mov cx, word [eax]
test cx, cx
je 0x10001b05
cmp cx, 0x30
jb 0x10001b01
cmp cx, 0x39
jbe 0x10001b05
inc eax
inc eax
jmp 0x10001aed
mov cx, word [eax]
test cx, cx
je 0x10001b70
mov esi, eax
cmp cx, 0x30
jb 0x10001b22
cmp cx, 0x39
ja 0x10001b22
inc esi
inc esi
mov cx, word [esi]
jmp 0x10001b0f
and word [esi], 0
push eax
call ebx
add esi, 2
pop ecx
test esi, esi
mov edi, eax
je 0x10001b3f
cmp word [esi], 0
je 0x10001b3f
push esi
call ebx
pop ecx
jmp 0x10001b42
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10001b4e
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10001b5a
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10001b63
mov dword [ecx], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10001b6c
mov dword [ecx], eax
mov byte [ebp + 0x1b], 1
push dword [ebp - 8]
call sub.MFC42u.DLL_operatordelete
mov al, byte [ebp + 0x1b]
pop ecx
pop edi
pop esi
pop ebx
leave
ret