Function at 0x1000173f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x1005e650]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call sub.MSVCR80.dll_memset
xor eax, eax
lea edi, [esp + 0x39]
add esp, 0xc
mov byte [esp + 0x2c], bl
stosw word es:[edi], ax
lea edi, [esi - 4]
push edi
lea eax, [esp + 0x775]
push ebx
push eax
mov byte [esp + 0x77c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x4d]
push ebx
push eax
mov byte [esp + 0x54], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x675]
push ebx
push eax
mov byte [esp + 0x67c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x465]
push ebx
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x46c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x255]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x25c], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x56d]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x574], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x35d]
push ebx
push eax
mov byte [esp + 0x364], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [0x100727a8], ebx
jne 0x10001e7e
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0x10000000
mov dword [0x100727a8], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10001e7e
lea eax, [esp + 0x670]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x778]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.MSVCR80.dll__splitpath]
lea eax, [esp + 0x5c]
add esp, 0x14
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
pop ecx
call fcn.100027cc
xor ecx, ecx
cmp eax, ebx
setl cl
lea edi, [esp + 0x48]
mov ebx, ecx
call fcn.10002606
test eax, eax
jne 0x10001908
push eax
push eax
lea eax, [esp + 0x150]
push eax
xor edx, edx
mov ecx, edi
call fcn.1000220e
add esp, 0xc
call fcn.100028da
jmp 0x10001e7e
call fcn.100028da
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x14c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10001944
lea eax, [esp + 0x148]
push ebx
push ebx
push eax
xor edx, edx
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
jmp 0x10001e7e
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x148]
je 0x1000192e
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10001e5e
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x100507c0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001e5e
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001e5e
cmp dword [esp + 0x3c], ebx
jbe 0x10001e5e
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
push ecx
push eax
lea eax, [esp + 0x468]
push str.StringFileInfo_04X_04XFileDescription
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x468]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001e5e
cmp dword [esp + 0x34], ebx
jbe 0x10001e5e
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [esp + 0x468]
push str.StringFileInfo_04X_04XComments
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x468]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001a42
cmp dword [esp + 0x38], ebx
ja 0x10001a46
mov dword [esp + 0x1c], ebx
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, str.RELEASE
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
je 0x10001a6a
push dword [esp + 0x10]
jmp 0x10001e77
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, str.SERVICE_PACK
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001a61
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, str.HOTFIX
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001a61
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, str.EXPERIMENTAL
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
push 2
je 0x10001adb
push dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
jmp 0x10001a61
push ebx
push str.CtRes32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x20], esi
jne 0x10001af7
push ebx
push ebx
xor edx, edx
jmp 0x10001ac5
push 0x104
lea eax, [esp + 0x35c]
push eax
push 0x5ad
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x10001b43
push ebx
lea eax, [esp + 0x14c]
push ebx
push eax
xor edx, edx
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10001e7e
lea eax, [esp + 0x358]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
pop ecx
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x254]
push str.BETA_OEMID__.50s
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
je 0x10001b9a
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push dword [esp + 0x20]
jmp 0x10001b38
push 0x104
lea eax, [esp + 0x35c]
push eax
push 0x5ae
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x10001bd4
push ebx
lea eax, [esp + 0x14c]
push ebx
push eax
xor edx, edx
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
jmp 0x10001b89
lea eax, [esp + 0x358]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
pop ecx
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x254]
push str.BETA_OEMID__.50s
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001b89
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x254]
push str.CUSTOM_RELEASE_OEMID__.50s
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001b89
push dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
call fcn.100027cc
test eax, eax
jl 0x10001c83
lea eax, [esp + 0x30]
push eax
push str.OemCode
call fcn.10002889
test eax, eax
pop ecx
pop ecx
jge 0x10001cb1
push 0
push dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x100018fe
movzx eax, word [esp + 0x30]
push eax
lea eax, [esp + 0x254]
push str.BETA_OEMID__05d
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
je 0x10001cfa
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0
call ebx
jmp 0x100018fe
movzx eax, word [esp + 0x30]
push eax
lea eax, [esp + 0x254]
push str.CUSTOM_RELEASE_OEMID__05d
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001ce6
lea eax, [esp + 0x24]
push eax
push str.SiteId
call fcn.10002889
test eax, eax
pop ecx
pop ecx
jl 0x10001c83
xor ebx, ebx
cmp word [esp + 0x24], bx
je 0x10001dc3
movzx eax, word [esp + 0x24]
push eax
lea eax, [esp + 0x254]
push str.BETA_SITEID__05d
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001ca1
movzx eax, word [esp + 0x24]
push eax
lea eax, [esp + 0x254]
push str.CUSTOM_RELEASE_SITEID__05d
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001ca1
push 0x104
lea eax, [esp + 0x56c]
push eax
push str.Serial
call fcn.100028af
add esp, 0xc
test eax, eax
jge 0x10001de7
push ebx
jmp 0x10001c85
lea eax, [esp + 0x568]
push eax
lea eax, [esp + 0x254]
push str.BETA_KEYID__s
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
jne 0x10001ca1
lea eax, [esp + 0x568]
push eax
lea eax, [esp + 0x254]
push str.CUSTOM_RELEASE_KEYID__s
push eax
call edi
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
lea edx, [esp + 0x254]
lea ecx, [esp + 0x4c]
call fcn.10002014
test eax, eax
pop ecx
je 0x10001de1
jmp 0x10001ca1
push ebx
lea eax, [esp + 0x14c]
push ebx
push eax
xor edx, edx
lea ecx, [esp + 0x54]
call fcn.1000220e
add esp, 0xc
push esi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004510e
mov esp, ebp
pop ebp
ret