Function at 0x402d30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [0x5636f8], bl
mov byte [0x563578], bl
mov byte [0x5638f8], bl
mov byte [0x5635f8], bl
mov byte [0x563b78], bl
mov byte [0x563bf8], bl
mov byte [0x563678], bl
mov byte [0x5639f8], bl
mov byte [0x5637f8], bl
mov byte [0x563a78], bl
mov byte [0x563af8], bl
mov byte [0x563878], bl
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
mov dword [ebp - 0x1c], eax
call fcn.004f266a
mov edx, dword [ebp - 0x1c]
add esp, 4
mov edi, eax
mov eax, dword [esi + 4]
push edi
push edx
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403064
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
push ecx
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp ebx, dword [ebp - 0x20]
jae 0x403064
mov edx, dword [ebp - 0x18]
xor ecx, ecx
lea eax, [ebp - 0x34c]
push 0x104
mov cx, word [edx]
push eax
push ecx
call sub.KERNEL32.dll_VerLanguageNameA
mov dword [ebp - 0x54], 0x50d840
mov dword [ebp - 0x50], 0x50d834
mov dword [ebp - 0x4c], 0x50d824
mov dword [ebp - 0x48], 0x50d818
mov dword [ebp - 0x44], 0x50d808
mov dword [ebp - 0x40], 0x50d7f8
mov dword [ebp - 0x3c], str.LegalTrademarks
mov dword [ebp - 0x38], 0x50d7d4
mov dword [ebp - 0x34], str.PrivateBuild
mov dword [ebp - 0x30], 0x50d7b8
mov dword [ebp - 0x2c], 0x50d7a8
mov dword [ebp - 0x28], str.SpecialBuild
xor esi, esi
cmp esi, 0xc
jae 0x403053
mov eax, dword [ebp + esi*4 - 0x54]
xor edx, edx
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [ebp - 0x248]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004f175f
add esp, 0x14
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x248]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40304d
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40304d
mov eax, dword [ebp - 0x14]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
test esi, esi
jne 0x402ee8
mov ecx, dword [ebp - 0x14]
push ecx
push 0x50d39c
push 0x5636f8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 1
jne 0x402f09
mov edx, dword [ebp - 0x14]
push edx
push 0x50d39c
push 0x563578
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 2
jne 0x402f2a
mov eax, dword [ebp - 0x14]
push eax
push 0x50d39c
push 0x5638f8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 3
jne 0x402f4b
mov ecx, dword [ebp - 0x14]
push ecx
push 0x50d39c
push 0x5635f8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 4
jne 0x402f6c
mov edx, dword [ebp - 0x14]
push edx
push 0x50d39c
push 0x563b78
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 5
jne 0x402f8d
mov eax, dword [ebp - 0x14]
push eax
push 0x50d39c
push 0x563bf8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 6
jne 0x402fae
mov ecx, dword [ebp - 0x14]
push ecx
push 0x50d39c
push 0x563678
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 7
jne 0x402fcf
mov edx, dword [ebp - 0x14]
push edx
push 0x50d39c
push 0x5639f8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 8
jne 0x402ff0
mov eax, dword [ebp - 0x14]
push eax
push 0x50d39c
push 0x5637f8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 9
jne 0x403011
mov ecx, dword [ebp - 0x14]
push ecx
push 0x50d39c
push 0x563a78
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 0xa
jne 0x403032
mov edx, dword [ebp - 0x14]
push edx
push 0x50d39c
push 0x563af8
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
cmp esi, 0xb
jne 0x40304d
mov eax, dword [ebp - 0x14]
push eax
push 0x50d39c
push 0x563878
call fcn.004f175f
add esp, 0xc
inc esi
jmp 0x402e64
mov eax, dword [ebp - 0x18]
add ebx, 4
add eax, 4
mov dword [ebp - 0x18], eax
jmp 0x402deb
push edi
call fcn.004f265f
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret