Function at 0x4cfc50
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1d8]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x4cfca1
call fcn.004d4b80
mov esi, dword [0x559ef4]
mov eax, esi
mov cx, word [0x54fdb8]
and eax, 0x3ff
cmp cx, ax
je 0x4cfcb0
test cx, cx
je 0x4cfcb0
movzx esi, cx
jmp 0x4cfca4
movzx esi, ax
or esi, 0x800
mov dword [0x559ef4], esi
mov eax, esi
and eax, 0x3ff
cmp eax, 9
je 0x4cffb3
push 0x104
call fcn.004fe794
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cff04
push esi
call fcn.004d4a30
mov esi, eax
test esi, esi
je 0x4cff04
push 0x104
push ebx
push dword [0x55bcd4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cfd00
sub ecx, edx
add ecx, ebx
jmp 0x4cfd10
dec ecx
cmp byte [ecx], 0x2e
jne 0x4cfd10
mov byte [ecx + 1], 0x6c
mov edi, ecx
movzx eax, byte [esi]
mov byte [ecx + 2], al
movzx eax, byte [esi + 1]
mov byte [ecx + 3], al
mov byte [ecx + 4], 0
lea ecx, [ecx]
dec edi
cmp byte [edi], 0x5c
jne 0x4cfd30
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebx
inc edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4cff04
push esi
call fcn.004fe794
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4cff04
push ebp
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4cff04
push 0x412350
lea eax, [esp + 0x80]
push 0x64
push eax
call fcn.004fcc08
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x84]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4cfdbf
mov dword [0x559ef4], 0x809
jmp 0x4cff20
push edi
push dword [esp + 0x14]
call fcn.004fee27
add esp, 8
test eax, eax
je 0x4cfe06
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 1
push eax
push 0x46c
call fcn.004d4b00
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004d49b0
mov dword [0x559ef4], 0x809
jmp 0x4cff3c
push ebp
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4cfe23
mov dword [0x559ef4], 0x809
jmp 0x4cff20
push 0x408a48
lea eax, [esp + 0x80]
push 0x64
push eax
call fcn.004fcc08
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x84]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4cfe65
mov dword [0x559ef4], 0x809
jmp 0x4cff3c
cmp dword [esp + 0x18], 0x34
je 0x4cfe7b
mov dword [0x559ef4], 0x809
jmp 0x4cff20
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
cmp ecx, 0x60032
ja 0x4cfea1
jb 0x4cfea1
push ebx
call fcn.004d4b50
test eax, eax
jne 0x4cffad
mov eax, 0x46b
jmp 0x4cff06
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [esp + 0x2c]
push ecx
push 0x41237c
push eax
call esi
push 0x32
push 6
lea eax, [esp + 0x4c]
push 0x41237c
push eax
call esi
add esp, 0x20
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 2
push eax
push 0x46d
call fcn.004d4b00
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004d49b0
mov eax, 0x46d
jmp 0x4cff06
xor eax, eax
mov esi, 0x809
mov dword [0x559ef4], esi
test eax, eax
je 0x4cffb3
cmp eax, 0x46b
jne 0x4cff3c
push 0x46b
call fcn.004d4b00
push eax
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0x412384
lea eax, [esp + 0xe4]
push 0xff
push eax
call fcn.004fed8b
add esp, 0xc
push 0xdf01
call fcn.004d4b00
push eax
lea eax, [esp + 0xe4]
push 0xff
push eax
call fcn.004fed8b
add esp, 0xc
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
push 1
push eax
push 0xdf00
call fcn.004d4b00
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004d49b0
push 0x30
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xe8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [0x559ef4]
and esi, 0x3ff
mov word [0x54fdb8], si
test ebp, ebp
je 0x4cffcd
push ebp
call fcn.004f948a
add esp, 4
test ebx, ebx
je 0x4cffda
push ebx
call fcn.004f948a
add esp, 4
mov edx, dword [esp + 0x1e8]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
jne 0x4d0003
lea eax, [edx + 1]
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.004f9e32
add esp, 0x1d4
ret 4
movzx ecx, word [0x54fdb8]
xor eax, eax
cmp edx, ecx
mov ecx, dword [esp + 0x1d0]
sete al
xor ecx, esp
call fcn.004f9e32
add esp, 0x1d4
ret 4