Function at 0x420da0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x658
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x65c]
push ebp
push esi
mov esi, dword [esp + 0x66c]
push 0x208
mov dword [esp + 0x28], edx
xor ebp, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x66c]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x24a]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x34], eax
mov word [esp + 0x250], cx
call fcn.004820f0
add esp, 0xc
cmp esi, ebp
je 0x420e1e
xor eax, eax
cmp ax, word [esi]
je 0x420e1e
push 0x104
push esi
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x420e32
push 0x104
lea edx, [esp + 0x248]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea ecx, [esp + 0x456]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x45c], ax
call fcn.004820f0
add esp, 0xc
push ebp
lea edx, [esp + 0x248]
push edx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x420e86
xor al, al
jmp 0x42113f
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.0047c76b
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
cmp ebx, ebp
jne 0x420ea5
xor al, al
jmp 0x42113d
push edi
push ebp
push ebx
call fcn.004820f0
add esp, 0xc
push ebx
push esi
push ebp
lea eax, [esp + 0x258]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421130
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421130
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x421130
jmp 0x420f00
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x468]
push 0x104
push eax
call fcn.0047ea35
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x460]
push eax
push ebx
mov dword [esp + 0x24], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420f56
mov edi, dword [esp + 0x24]
cmp edi, ebp
ja 0x420f67
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x420f00
jmp 0x421130
push 0x208
lea eax, [esp + 0x46]
xor edx, edx
push ebp
push eax
mov word [esp + 0x4c], dx
call fcn.004820f0
add esp, 0xc
cmp edi, 0x104
jbe 0x420f8e
mov edi, 0x104
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0047e343
add esp, 0xc
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
cmp word [esp + 0x40], bp
je 0x420fd2
mov ecx, 0x2c
cmp cx, word [eax]
jne 0x420fc6
mov edx, 0x2e
mov word [eax], dx
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp word [eax], bp
jne 0x420fb0
lea eax, [esp + 0x40]
push 0x2e
push eax
mov byte [esp + 0x1b], 0
call fcn.0047ea0f
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x421130
lea edx, [esp + 0x40]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.0047e9d8
mov dword [esp + 0x38], eax
mov eax, 0x2e
push eax
lea ecx, [esp + 0x48]
push ecx
mov word [esi], ax
call fcn.0047ea0f
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x421130
movzx eax, word [edi]
cmp ax, 0x30
jb 0x421032
cmp ax, 0x39
jbe 0x421037
add edi, 2
jmp 0x421023
cmp word [edi], bp
je 0x421130
cmp word [edi], 0x30
mov esi, edi
jb 0x421057
cmp word [esi], 0x39
ja 0x421057
add esi, 2
cmp word [esi], 0x30
jae 0x421048
movzx eax, word [esi]
cmp ax, bp
je 0x421130
xor edx, edx
push edi
movzx ebp, ax
mov word [esi], dx
call fcn.0047e9d8
push 0x2e
push edi
mov ebx, eax
mov word [esi], bp
call fcn.0047ea0f
add esp, 0xc
test eax, eax
je 0x42112c
movzx ecx, word [eax]
test cx, cx
je 0x42112c
cmp cx, 0x30
jb 0x4210a1
cmp cx, 0x39
jbe 0x4210af
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x421095
jmp 0x42112c
cmp word [eax], 0
je 0x42112c
cmp word [eax], 0x30
mov esi, eax
jb 0x4210cf
lea ecx, [ecx]
cmp word [esi], 0x39
ja 0x4210cf
add esi, 2
cmp word [esi], 0x30
jae 0x4210c0
xor ecx, ecx
push eax
mov word [esi], cx
call fcn.0047e9d8
mov edi, eax
lea eax, [esi + 2]
add esp, 4
test eax, eax
je 0x4210f7
cmp word [eax], 0
je 0x4210f7
push eax
call fcn.0047e9d8
add esp, 4
jmp 0x4210fb
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x421109
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x421113
mov dword [ecx], ebx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x42111d
mov dword [ecx], edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x421127
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.0047d358
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x65c]
pop esi
pop ebp
xor ecx, esp
call fcn.0047cee5
add esp, 0x658
ret 0xc