Function at 0x4d2370
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov eax, 0x5128e8
push ebx
push esi
push edi
call fcn.004f505c
mov dword [ebp - 0x30], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.00503970
inc dword [ebp - 0x30]
lea edx, [ebp + 0xc]
mov word [ebp - 0x3c], 0xc
lea eax, [ebp + 0xc]
call fcn.00503970
inc dword [ebp - 0x30]
mov edx, 0x5127a4
mov word [ebp - 0x3c], 0x18
lea eax, [ebp - 4]
call fcn.00503938
inc dword [ebp - 0x30]
mov edx, 0x5127a5
mov word [ebp - 0x3c], 0xc
mov word [ebp - 0x3c], 0x24
lea eax, [ebp - 8]
call fcn.00503938
inc dword [ebp - 0x30]
xor edx, edx
mov word [ebp - 0x3c], 0xc
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x50]
push ecx
cmp dword [ebp + 0xc], 0
je 0x4d23f8
mov eax, dword [ebp + 0xc]
jmp 0x4d23fd
mov eax, 0x5127a6
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jbe 0x4d2625
mov word [ebp - 0x3c], 0x30
mov edx, dword [ebp - 0x54]
push edx
call fcn.004f4874
pop ecx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4d2607
mov ecx, dword [ebp - 0x58]
push ecx
mov eax, dword [ebp - 0x54]
push eax
push 0
cmp dword [ebp + 0xc], 0
je 0x4d2442
mov edx, dword [ebp + 0xc]
jmp 0x4d2447
mov edx, 0x5127a7
push edx
call sub.VERSION.DLL_GetFileVersionInfoA
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x58]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4d2607
mov word [ebp - 0x3c], 0x3c
lea eax, [ebp - 0xc]
call fcn.00401be8
mov ecx, eax
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x5c]
movzx eax, word [edx]
mov edx, 4
call fcn.00503b38
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.005039dc
dec dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005039ac
mov word [ebp - 0x3c], 0x48
lea eax, [ebp - 0x10]
call fcn.00401be8
mov ecx, eax
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x5c]
movzx eax, word [edx + 2]
mov edx, 4
call fcn.00503b38
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.005039f0
dec dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005039ac
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x5c]
push ecx
push eax
mov word [ebp - 0x3c], 0x54
lea eax, [ebp - 0x14]
call fcn.00401be8
mov ecx, eax
inc dword [ebp - 0x30]
lea edx, [ebp - 4]
mov eax, str.StringFileInfo_
call fcn.00503c2c
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
call fcn.00401be8
push eax
inc dword [ebp - 0x30]
mov edx, 0x5127d2
lea eax, [ebp - 0x18]
call fcn.00503938
inc dword [ebp - 0x30]
lea edx, [ebp - 0x18]
pop ecx
pop eax
call fcn.00503a04
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
push edx
call fcn.00401be8
mov ecx, eax
inc dword [ebp - 0x30]
lea edx, [ebp + 0x10]
pop eax
call fcn.00503a04
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
call fcn.00503970
inc dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0
je 0x4d2574
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
jmp 0x4d2579
mov eax, 0x5127d4
push eax
mov edx, dword [ebp - 0x58]
push edx
call sub.VERSION.DLL_VerQueryValueA
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005039ac
pop ecx
test ecx, ecx
je 0x4d2607
mov word [ebp - 0x3c], 0x60
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x5c]
call fcn.00503938
mov edx, eax
inc dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.005039dc
dec dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005039ac
mov word [ebp - 0x3c], 0xc
cmp dword [ebp - 0x58], 0
je 0x4d261d
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004f4884
pop ecx
cmp word [ebp - 0x3a], 0
je 0x4d2625
ret
mov word [ebp - 0x3c], 0x6c
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.005039dc
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x3c], 0x78
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x30]
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.005039ac
dec dword [ebp - 0x30]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.005039ac
pop eax
mov word [ebp - 0x3c], 0x6c
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
pop ebp
ret