Function at 0x40af10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x65c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x658], eax
mov eax, dword [esp + 0x660]
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
push 0x208
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x670]
lea ecx, [esp + 0x24e]
push ebx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov word [esp + 0x254], bx
call fcn.004be240
add esp, 0xc
cmp esi, ebx
je 0x40af8a
cmp word [esi], bx
je 0x40af8a
push 0x104
push esi
lea edx, [esp + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x40af9e
push 0x104
lea eax, [esp + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea ecx, [esp + 0x45a]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x460], bx
call fcn.004be240
add esp, 0xc
push ebx
lea edx, [esp + 0x24c]
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40afeb
xor al, al
jmp 0x40b295
push ebp
push edi
lea edi, [esi + 1]
push edi
call fcn.004b73e1
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jne 0x40b00a
xor al, al
jmp 0x40b293
push edi
push ebx
push ebp
call fcn.004be240
add esp, 0xc
push ebp
push esi
push ebx
lea eax, [esp + 0x25c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b286
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b286
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x40b286
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push 0x4f039c
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.004b937c
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x464]
push eax
push ebp
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b0b6
mov edi, dword [esp + 0x24]
cmp edi, ebx
ja 0x40b0c9
mov ecx, dword [esp + 0x18]
add esi, 1
shr ecx, 2
cmp esi, ecx
jb 0x40b060
jmp 0x40b286
push 0x208
lea edx, [esp + 0x4a]
push ebx
push edx
mov word [esp + 0x50], bx
call fcn.004be240
add esp, 0xc
cmp edi, 0x104
jbe 0x40b0ee
mov edi, 0x104
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004b848e
add esp, 0xc
cmp word [esp + 0x44], bx
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
je 0x40b12b
cmp word [eax], 0x2c
jne 0x40b11f
mov word [eax], 0x2e
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp word [eax], bx
jne 0x40b110
lea edx, [esp + 0x44]
push 0x2e
push edx
mov byte [esp + 0x1b], bl
call fcn.004b944d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40b286
lea eax, [esp + 0x44]
push eax
mov word [esi], bx
call fcn.004b83fd
lea ecx, [esp + 0x48]
push 0x2e
push ecx
mov dword [esp + 0x48], eax
mov word [esi], 0x2e
call fcn.004b944d
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x40b286
movzx eax, word [edi]
cmp ax, 0x30
jb 0x40b186
cmp ax, 0x39
jbe 0x40b18b
add edi, 2
jmp 0x40b177
cmp word [edi], bx
je 0x40b286
cmp word [edi], 0x30
mov esi, edi
jb 0x40b1af
lea esp, [esp]
cmp word [esi], 0x39
ja 0x40b1af
add esi, 2
cmp word [esi], 0x30
jae 0x40b1a0
movzx eax, word [esi]
cmp ax, bx
je 0x40b286
push edi
movzx ebp, ax
mov word [esi], bx
call fcn.004b83fd
push 0x2e
push edi
mov dword [esp + 0x4c], eax
mov word [esi], bp
call fcn.004b944d
add esp, 0xc
cmp eax, ebx
je 0x40b282
movzx ecx, word [eax]
cmp cx, bx
je 0x40b282
lea ecx, [ecx]
cmp cx, 0x30
jb 0x40b1fc
cmp cx, 0x39
jbe 0x40b20a
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40b1f0
jmp 0x40b282
cmp word [eax], bx
je 0x40b282
cmp word [eax], 0x30
mov esi, eax
jb 0x40b226
cmp word [esi], 0x39
ja 0x40b226
add esi, 2
cmp word [esi], 0x30
jae 0x40b217
push eax
mov word [esi], bx
call fcn.004b83fd
mov edi, eax
lea eax, [esi + 2]
add esp, 4
cmp eax, ebx
je 0x40b24b
cmp word [eax], bx
je 0x40b24b
push eax
call fcn.004b83fd
add esp, 4
jmp 0x40b24d
mov eax, ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x40b25b
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x40b269
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x40b273
mov dword [ecx], edi
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40b27d
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004b8802
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebp
mov ecx, dword [esp + 0x660]
pop esi
pop ebx
xor ecx, esp
call fcn.004b83ee
add esp, 0x65c
ret 0xc