Function at 0x401740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, 0x21
mov word [ebp - 0x3c], ax
movzx ecx, word [ebp - 0x3c]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0x650
je 0x40176a
jmp 0x4017c3
movzx edx, word [ebp - 0x3c]
sub edx, 0x348
mov word [ebp - 0x3c], dx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push str.C:MoralisedJousting
push 0x39
call sub.VERSION.dll_VerFindFileA
mov dword [ebp - 0x20], eax
movzx eax, byte [0x56f204]
push eax
push 0x40
push 0xb5
movzx ecx, byte [0x56f204]
push ecx
call fcn.005662b0
jmp 0x401c1e
movsx edx, byte [0x56f204]
cmp edx, 0x77
je 0x401b6d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 0x1ecd
mov ecx, 0x3e
mov word [ebp - 0x50], cx
movsx edx, word [ebp - 0x50]
cmp edx, 0x792
jg 0x401a6b
mov eax, dword [ebp - 0xa8]
add eax, 0x6b4a
cmp eax, dword [ebp - 0x30]
je 0x40181b
mov byte [ebp - 5], 0x51
mov cx, word [ebp - 0x3c]
mov word [ebp - 0x18], cx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x4c], edx
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x21
je 0x401830
jmp 0x4018a6
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa4], ecx
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0
je 0x401887
cmp dword [ebp - 0xb4], 0x2e98
je 0x401867
jmp 0x4018a1
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
and eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xa8]
sub edx, dword [ecx]
mov eax, dword [ebp - 0xa4]
mov dword [eax], edx
jmp 0x4018a1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dl, byte [ebp - 5]
mov byte [ebp - 0x6d], dl
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x401950
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
movzx edx, word [ebp - 0x18]
add ecx, edx
movzx eax, word [ebp - 0x3c]
cmp ecx, eax
jne 0x401950
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
push 0x49
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.COMCTL32.dll_DrawInsert]
mov dl, byte [0x56f204]
mov byte [ebp - 0xb8], dl
cmp byte [ebp - 0xb8], 9
je 0x4018ff
cmp byte [ebp - 0xb8], 0x2e
je 0x401933
jmp 0x401950
movzx eax, byte [ebp - 5]
add eax, 0xa3
movzx ecx, byte [ebp - 0x6d]
cmp eax, ecx
jge 0x401927
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [edx]
sar eax, cl
mov ecx, dword [ebp - 0xa4]
mov dword [ecx], eax
jmp 0x401931
movzx edx, byte [ebp - 5]
shl edx, 7
mov byte [ebp - 0x6d], dl
jmp 0x401950
movzx eax, byte [0x56f204]
push eax
movzx ecx, byte [0x56f204]
push ecx
movzx edx, byte [0x56f204]
push edx
call fcn.005668b0
movsx eax, byte [0x56f204]
cmp eax, 0x6b
jle 0x4019bd
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
movzx eax, word [ebp - 0x3c]
and edx, eax
mov ecx, dword [ebp - 0x34]
mov word [ecx], dx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xa8]
add eax, dword [edx]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
cmp eax, ecx
jne 0x4019a9
lea edx, [ebp - 0x14]
push edx
push fcn.005662b0
mov eax, dword [ebp - 0x7c]
push eax
call sub.COMCTL32.dll_RemoveWindowSubclass
mov dword [ebp - 0x6c], eax
call fcn.00401740
movzx ecx, byte [ebp - 0x6d]
and ecx, 0x56
mov byte [ebp - 5], cl
jmp 0x4019bb
mov edx, dword [ebp - 0x34]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x18]
sub eax, ecx
mov edx, dword [ebp - 0x34]
mov word [edx], ax
jmp 0x4019d2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0xbc], ecx
cmp dword [ebp - 0xbc], 0x21
je 0x401a56
cmp dword [ebp - 0xbc], 0x14e
je 0x4019f5
jmp 0x401a66
movzx edx, byte [ebp - 0x6d]
add edx, 0xe4
mov byte [ebp - 5], dl
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [ebp - 0xc0], ecx
cmp dword [ebp - 0xc0], 0xa6f
je 0x401a1c
jmp 0x401a38
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.COMCTL32.dll_MakeDragList]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x60]
mov dword [edx], ecx
jmp 0x401a46
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x74]
or eax, dword [edx]
mov dword [ebp - 0x28], eax
jmp 0x401a66
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x34]
mov ax, word [edx]
mov word [ebp - 4], ax
jmp 0x401b20
movsx ecx, word [ebp - 0x50]
xor ecx, 0x413
cmp ecx, 0x757
jne 0x401b20
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
movsx eax, word [ebp - 0x50]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xe8
je 0x401aa1
jmp 0x401b03
mov ecx, dword [ebp - 0x1c]
shr ecx, 0xaf
cmp ecx, dword [ebp - 0x20]
jae 0x401b03
movzx edx, word [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov dl, byte [0x56f204]
mov cl, 0x8d
call fcn.005663b0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
push 0xd0
call sub.VERSION.dll_VerInstallFileA
mov dword [ebp - 0x14], eax
movsx ecx, word [ebp - 0x50]
sub ecx, 0x174
mov word [ebp - 0x50], cx
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.COMCTL32.dll_LBItemFromPt]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xc8], 0x2ed4
je 0x401b43
cmp dword [ebp - 0xc8], 0xd869
je 0x401b64
jmp 0x401b6d
movzx eax, byte [0x56f204]
push eax
movzx ecx, word [ebp - 0x50]
push ecx
movzx edx, word [ebp - 0x50]
push edx
movzx eax, byte [0x56f204]
push eax
call fcn.005662b0
jmp 0x401b6d
mov ecx, dword [ebp - 0x30]
shl ecx, 5
mov dword [ebp - 0x30], ecx
movzx edx, word [ebp - 0x3c]
and edx, 0x6f6
mov word [ebp - 0x3c], dx
movzx eax, word [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov dl, byte [0x56f204]
mov cl, 0xb8
call fcn.005663b0
movzx eax, word [ebp - 0x3c]
or eax, 0x46e
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x20], 0xd816
mov cl, byte [0x56f204]
mov byte [ebp - 0xcc], cl
cmp byte [ebp - 0xcc], 8
je 0x401c0a
cmp byte [ebp - 0xcc], 0x29
je 0x401bc9
jmp 0x401c1e
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x7c]
push edx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x38], eax
movzx eax, byte [0x56f204]
push eax
movzx ecx, byte [0x56f204]
push ecx
movzx edx, byte [0x56f204]
push edx
call fcn.005668b0
mov dword [ebp - 0x20], 0xd586
jmp 0x401c1e
lea eax, [ebp - 0x20]
push eax
push 0x1f
push 0x48
mov ecx, dword [ebp - 0x44]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x64], eax
movzx edx, word [ebp - 0x3c]
add edx, 0x1bc
mov word [ebp - 0x3c], dx
push 0xaa
lea eax, [ebp - 0x6c]
push eax
push fcn.00401740
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.COMCTL32.dll_SetWindowSubclass
mov dword [ebp - 0x6c], eax
movzx edx, byte [0x56f204]
push edx
movzx eax, byte [0x56f204]
push eax
movzx ecx, byte [0x56f204]
push ecx
call fcn.005668b0
movsx eax, byte [0x56f204]
mov esp, ebp
pop ebp
ret