Function at 0x1021ea60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x118], 0x1046e5a0
push edi
mov dword [ebp - 0x114], 0x1046e5b0
xor edi, edi
mov dword [ebp - 0x110], 0x1046e5c0
mov dword [ebp - 0x10c], 0x1046e5e0
lea ebx, [esi + 0xecc]
mov byte [ebp - 0x11d], 0
mov byte [ebp - 0x11e], 0
mov byte [ebp - 0x11f], 0
nop dword [eax]
push dword [ebp + edi*4 - 0x118]
push ebx
call fcn.1043ab70
add esp, 8
test eax, eax
je 0x1021eadf
inc edi
cmp edi, 4
jb 0x1021eac0
jmp 0x1021ee7a
mov eax, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
test edi, edi
jne 0x1021ebbe
lea ecx, [ebp - 0x128]
mov byte [ebp - 0x11d], 1
push ecx
push ebx
mov dword [esi + 0xe0], 0x100
call eax
mov ebx, eax
test ebx, ebx
je 0x1021ecec
push ebx
call fcn.10450898
mov edi, eax
add esp, 4
test edi, edi
je 0x1021ecec
push edi
push ebx
push 0
lea eax, [esi + 0xecc]
push eax
mov eax, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
call eax
test eax, eax
je 0x1021ebb0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [sym.imp.VERSION.dll_VerQueryValueA]
push 0x10468d10
push edi
call eax
cmp eax, 1
jne 0x1021ebb0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1021ebb0
cmp dword [ebp - 0x124], 0x34
jne 0x1021ebb0
movzx ebx, word [eax + 0x12]
push edi
call fcn.10450877
add esp, 4
cmp ebx, 9
jb 0x1021eb98
mov dword [esi + 0xe0], 0x102
jmp 0x1021ecec
cmp ebx, 8
jb 0x1021ecec
mov dword [esi + 0xe0], 0x101
jmp 0x1021ecec
push edi
call fcn.10450877
add esp, 4
jmp 0x1021ecec
cmp edi, 1
je 0x1021ebe7
cmp edi, 2
je 0x1021ebe7
cmp edi, 3
jne 0x1021ecec
mov byte [ebp - 0x11f], 1
mov dword [esi + 0xe0], 0x300
jmp 0x1021ecec
lea ecx, [ebp - 0x128]
mov byte [ebp - 0x11e], 1
push ecx
push ebx
call eax
mov dword [ebp - 0x124], eax
test eax, eax
je 0x1021ecd9
push eax
call fcn.10450898
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1021ecd9
push ebx
push dword [ebp - 0x124]
lea eax, [esi + 0xecc]
push 0
push eax
mov eax, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
call eax
test eax, eax
je 0x1021ecd0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [sym.imp.VERSION.dll_VerQueryValueA]
push 0x10468d10
push ebx
call eax
cmp eax, 1
jne 0x1021ecd0
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1021ecd0
cmp dword [ebp - 0x124], 0x34
jne 0x1021ecd0
mov ecx, dword [eax + 0x10]
cmp ecx, 0x40000
jb 0x1021ec95
push ebx
mov dword [esi + 0xe0], 0x202
call fcn.10450877
add esp, 4
jmp 0x1021ecec
cmp ecx, 0x30006
jb 0x1021ecbb
cmp dword [eax + 0x14], 0x40000
jb 0x1021ecbb
push ebx
mov dword [esi + 0xe0], 0x201
call fcn.10450877
add esp, 4
jmp 0x1021ecec
push ebx
mov dword [esi + 0xe0], 0x200
call fcn.10450877
add esp, 4
jmp 0x1021ecec
push ebx
call fcn.10450877
add esp, 4
xor eax, eax
cmp edi, 2
sete al
add eax, 0x200
mov dword [esi + 0xe0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1046e590
call edi
mov dword [ebp - 0x128], eax
test eax, eax
je 0x1021eddd
lea eax, [ebp - 0x130]
mov dword [esi + 0xe4], 0x100
push eax
push 0x1046e590
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x1021eddd
push eax
call fcn.10450898
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1021eddd
push ebx
push dword [ebp - 0x124]
push 0
push 0x1046e590
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1021edd4
lea eax, [ebp - 0x124]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x10468d10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
cmp eax, 1
jne 0x1021edd4
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1021edd4
cmp dword [ebp - 0x124], 0x34
jne 0x1021edd4
movzx eax, word [eax + 0x12]
push ebx
mov dword [ebp - 0x12c], eax
call fcn.10450877
mov eax, dword [ebp - 0x12c]
add esp, 4
cmp eax, 5
jb 0x1021edc2
mov dword [esi + 0xe4], 0x102
jmp 0x1021eddd
cmp eax, 4
sbb eax, eax
add eax, 0x101
mov dword [esi + 0xe4], eax
jmp 0x1021eddd
push ebx
call fcn.10450877
add esp, 4
xor ebx, ebx
cmp byte [ebp - 0x11d], bl
je 0x1021ee08
push 0x1046e5f0
call edi
push 0x1046e610
mov dword [ebp - 0x11c], eax
call edi
push 0x1046e630
mov ebx, eax
call edi
mov ecx, eax
jmp 0x1021ee40
cmp byte [ebp - 0x11e], bl
jne 0x1021ee18
cmp byte [ebp - 0x11f], bl
je 0x1021ee53
push 0x1046e640
call edi
push 0x1046e660
mov dword [ebp - 0x11c], eax
call edi
cmp dword [ebp - 0x128], 0
mov ebx, eax
je 0x1021ee3e
or byte [esi + 0xb0], 1
xor ecx, ecx
cmp dword [ebp - 0x11c], 0
mov eax, ebx
jne 0x1021ee5c
test eax, eax
jne 0x1021ee5c
test ecx, ecx
jne 0x1021ee5c
test byte [esi + 0xb3], 2
je 0x1021ee63
or byte [esi + 0xb0], 1
mov al, byte [esi + 0xb0]
neg ebx
sbb bl, bl
and al, 0xfd
and bl, 2
or bl, al
mov byte [esi + 0xb0], bl
lea eax, [ebp - 0x108]
mov edx, 0x1046c220
mov edi, eax
mov cl, 0x53
sub edx, edi
nop dword [eax + eax]
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x1021ee90
cmp dword [esi + 0xe0], 0x300
mov byte [eax], cl
jne 0x1021ef5f
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [esi + 0x9b8]
call fcn.101ffd90
test al, al
je 0x1021ef5f
lea eax, [ebp - 0x11c]
push eax
push 0x1046e670
lea ecx, [esi + 0x9b8]
call fcn.10200690
test al, al
je 0x1021ef54
cmp dword [ebp - 0x11c], 0
jbe 0x1021ef54
lea eax, [ebp - 0x11c]
mov bl, 1
push eax
push 0x1046e680
lea ecx, [esi + 0x9b8]
call fcn.10200690
test al, al
je 0x1021ef19
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0xe80], eax
jmp 0x1021ef1b
xor bl, bl
lea eax, [ebp - 0x11c]
push eax
push 0x1046e6a0
lea ecx, [esi + 0x9b8]
call fcn.10200690
test al, al
je 0x1021ef54
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0xe84], eax
test bl, bl
je 0x1021ef54
or byte [esi + 0xb0], 1
mov byte [esi + 0xe5c], 1
lea ecx, [esi + 0x9b8]
call fcn.102000a0
lea eax, [esi + 0xecc]
push 0x1046e6c0
push eax
call fcn.1043ab70
add esp, 8
test eax, eax
jne 0x1021ef7e
or byte [esi + 0xb0], 1
test byte [esi + 0xb0], 1
je 0x1021efa2
or dword [esi + 0x1154], 2
mov dword [esi + 0x9c], 1
mov dword [esi + 0xa0], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret